Fix app generator tests

Change assert to not match with kredis gem.
This commit is contained in:
Jose Galisteo 2021-09-19 12:29:15 +02:00
parent c839fdb4d7
commit 8014bdd556
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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