mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix railties tests
This commit is contained in:
parent
068ab23a33
commit
c76b11244c
1 changed files with 2 additions and 2 deletions
|
@ -517,7 +517,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
|
|||
run_generator [destination_root, "--dev"]
|
||||
|
||||
assert_file "Gemfile" do |content|
|
||||
assert_match(/gem 'web-console',\s+github: "rails\/web-console"/, content)
|
||||
assert_match(/gem 'web-console',\s+github: 'rails\/web-console'/, content)
|
||||
assert_no_match(/gem 'web-console', '~> 2.0'/, content)
|
||||
end
|
||||
end
|
||||
|
@ -526,7 +526,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
|
|||
run_generator [destination_root, "--edge"]
|
||||
|
||||
assert_file "Gemfile" do |content|
|
||||
assert_match(/gem 'web-console',\s+github: "rails\/web-console"/, content)
|
||||
assert_match(/gem 'web-console',\s+github: 'rails\/web-console'/, content)
|
||||
assert_no_match(/gem 'web-console', '~> 2.0'/, content)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue