module FileUpdateCheckerSharedTests

Public Instance Methods

run(*args) click to toggle source
Calls superclass method
# File activesupport/test/file_update_checker_shared_tests.rb, line 21
def run(*args)
  capture_exceptions do
    Dir.mktmpdir(nil, __dir__) { |dir| @tmpdir = dir; super }
  end
end
tmpdir() click to toggle source
# File activesupport/test/file_update_checker_shared_tests.rb, line 9
def tmpdir
  @tmpdir
end
tmpfile(name) click to toggle source
# File activesupport/test/file_update_checker_shared_tests.rb, line 13
def tmpfile(name)
  File.join(tmpdir, name)
end
tmpfiles() click to toggle source
# File activesupport/test/file_update_checker_shared_tests.rb, line 17
def tmpfiles
  @tmpfiles ||= %w(foo.rb bar.rb baz.rb).map { |f| tmpfile(f) }
end