Method: ActiveSupport::TestCase#assert_file_present
- Defined in:
- lib/adaptation/test/test_help.rb
#assert_file_present(file) ⇒ Object
Asserts a file exists
180 181 182 183 184 185 186 187 |
# File 'lib/adaptation/test/test_help.rb', line 180 def assert_file_present file error = error, "? not found", file assert_block error do File.exists?(file) end end |