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

Simplify plugin tests a bit, leave the regexp work for minitest

This commit is contained in:
Carlos Antonio da Silva 2014-07-30 23:06:30 -03:00
parent c8c8fe98b3
commit 9023e3b773

View file

@ -378,8 +378,8 @@ class PluginGeneratorTest < Rails::Generators::TestCase
run_generator [destination_root]
assert_file "bukkits.gemspec" do |contents|
assert_match(/#{Regexp.escape(name)}/, contents)
assert_match(/#{Regexp.escape(email)}/, contents)
assert_match name, contents
assert_match email, contents
end
end
@ -388,7 +388,7 @@ class PluginGeneratorTest < Rails::Generators::TestCase
run_generator [destination_root]
assert_file "MIT-LICENSE" do |contents|
assert_match(/#{Regexp.escape(name)}/, contents)
assert_match name, contents
end
end
@ -398,11 +398,11 @@ class PluginGeneratorTest < Rails::Generators::TestCase
run_generator [destination_root, '--skip-git']
assert_file "MIT-LICENSE" do |contents|
assert_match(/#{Regexp.escape(name)}/, contents)
assert_match name, contents
end
assert_file "bukkits.gemspec" do |contents|
assert_match(/#{Regexp.escape(name)}/, contents)
assert_match(/#{Regexp.escape(email)}/, contents)
assert_match name, contents
assert_match email, contents
end
end