1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Swap assertion order for better reporting

`assert_directory("test/system")` may pass even if `assert_file("test/system/.keep")` fails.
This commit is contained in:
utilum 2018-04-29 10:22:14 +02:00
parent cc5f077f09
commit 9c016810d0

View file

@ -919,8 +919,8 @@ class AppGeneratorTest < Rails::Generators::TestCase
def test_system_tests_directory_generated
run_generator
assert_file("test/system/.keep")
assert_directory("test/system")
assert_file("test/system/.keep")
end
unless Gem.win_platform?