aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorutilum <oz@utilum.com>2018-04-29 10:22:14 +0200
committerutilum <oz@utilum.com>2018-04-29 10:23:15 +0200
commit9c016810d004312912e91dcd135bb57171edd919 (patch)
treed5454e947f8d89a5d1bd4aec1872358234a427e0 /railties/test
parentcc5f077f093131693fdceec21ceadd317e8cbef7 (diff)
downloadrails-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.rb2
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?