diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 7c2040470f..e584c01da9 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -439,7 +439,7 @@ class AppGeneratorTest < Rails::Generators::TestCase def test_spring run_generator - assert_file "Gemfile", /gem 'spring'/ + assert_file "Gemfile", /gem 'spring', \s+group: :development/ end def test_spring_binstubs