1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Do not check the version anymore

Our logic is complex now and we don't need to check the version to asset
the behavior so I'm removing the checking here.
This commit is contained in:
Rafael Mendonça França 2015-12-18 12:39:19 -02:00
parent b7660e0660
commit 840b3dd9b2

View file

@ -470,7 +470,7 @@ class PluginGeneratorTest < Rails::Generators::TestCase
assert_no_file "bukkits.gemspec"
assert_file "Gemfile" do |contents|
assert_no_match('gemspec', contents)
assert_match(/gem 'rails', '~> #{Rails.version}'/, contents)
assert_match(/gem 'rails'/, contents)
assert_match_sqlite3(contents)
assert_no_match(/# gem "jquery-rails"/, contents)
end
@ -481,7 +481,7 @@ class PluginGeneratorTest < Rails::Generators::TestCase
assert_no_file "bukkits.gemspec"
assert_file "Gemfile" do |contents|
assert_no_match('gemspec', contents)
assert_match(/gem 'rails', '~> #{Rails.version}'/, contents)
assert_match(/gem 'rails'/, contents)
assert_match_sqlite3(contents)
end
end