aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-07-30 23:06:30 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-07-30 23:41:18 -0300
commit9023e3b773769c90e0e43a10427895d7486e60cc (patch)
tree84f7167e6cd25bbf25bf6c95bb66928b382d5e3b /railties
parentc8c8fe98b333895a098310cf2bdde8d0e27e271a (diff)
downloadrails-9023e3b773769c90e0e43a10427895d7486e60cc.tar.gz
rails-9023e3b773769c90e0e43a10427895d7486e60cc.tar.bz2
rails-9023e3b773769c90e0e43a10427895d7486e60cc.zip
Simplify plugin tests a bit, leave the regexp work for minitest
Diffstat (limited to 'railties')
-rw-r--r--railties/test/generators/plugin_generator_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/test/generators/plugin_generator_test.rb b/railties/test/generators/plugin_generator_test.rb
index 0486c22772..129515a17b 100644
--- a/railties/test/generators/plugin_generator_test.rb
+++ b/railties/test/generators/plugin_generator_test.rb
@@ -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