diff options
author | utilum <oz@utilum.com> | 2018-04-29 10:22:14 +0200 |
---|---|---|
committer | utilum <oz@utilum.com> | 2018-04-29 10:23:15 +0200 |
commit | 9c016810d004312912e91dcd135bb57171edd919 (patch) | |
tree | d5454e947f8d89a5d1bd4aec1872358234a427e0 /railties/test | |
parent | cc5f077f093131693fdceec21ceadd317e8cbef7 (diff) | |
download | rails-9c016810d004312912e91dcd135bb57171edd919.tar.gz rails-9c016810d004312912e91dcd135bb57171edd919.tar.bz2 rails-9c016810d004312912e91dcd135bb57171edd919.zip |
Swap assertion order for better reporting
`assert_directory("test/system")` may pass even if `assert_file("test/system/.keep")` fails.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index a820d958f1..fa7bcfd6d6 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -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? |