diff --git a/railties/test/generators/api_app_generator_test.rb b/railties/test/generators/api_app_generator_test.rb index 08e6bd49b1..a200f1a055 100644 --- a/railties/test/generators/api_app_generator_test.rb +++ b/railties/test/generators/api_app_generator_test.rb @@ -65,7 +65,7 @@ class ApiAppGeneratorTest < Rails::Generators::TestCase assert_no_file "config/cable.yml" assert_no_file "app/channels" assert_file "Gemfile" do |content| - assert_no_match(/redis/, content) + assert_no_match(/"redis"/, content) end end diff --git a/railties/test/generators/shared_generator_tests.rb b/railties/test/generators/shared_generator_tests.rb index 55199e7148..fe0949e9e4 100644 --- a/railties/test/generators/shared_generator_tests.rb +++ b/railties/test/generators/shared_generator_tests.rb @@ -288,7 +288,7 @@ module SharedGeneratorTests assert_no_directory "#{application_path}/app/javascript/channels" assert_no_directory "#{application_path}/app/channels" assert_file "Gemfile" do |content| - assert_no_match(/redis/, content) + assert_no_match(/"redis"/, content) end end