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:
parent
c8c8fe98b3
commit
9023e3b773
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue