aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorArun Agrawal <arun@fromjaipur.com>2011-09-04 08:23:13 +0530
committerArun Agrawal <arun@fromjaipur.com>2011-09-04 08:23:13 +0530
commitc8d0dc376a72b976ccef17b8d0b413961b306a5f (patch)
tree5188b9f2bee853a24733a8353d8f0564d8b1ce4a /railties/test/generators
parent34618e6697475bca8b4bcfaaa2d55a99e78c031a (diff)
downloadrails-c8d0dc376a72b976ccef17b8d0b413961b306a5f.tar.gz
rails-c8d0dc376a72b976ccef17b8d0b413961b306a5f.tar.bz2
rails-c8d0dc376a72b976ccef17b8d0b413961b306a5f.zip
Warnings removed for "assert_match /" Please do
not add more.!
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/plugin_new_generator_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb
index b49945f153..9183945619 100644
--- a/railties/test/generators/plugin_new_generator_test.rb
+++ b/railties/test/generators/plugin_new_generator_test.rb
@@ -197,8 +197,8 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
assert_file "app/helpers/bukkits/application_helper.rb", /module Bukkits\n module ApplicationHelper/
assert_file "app/views/layouts/bukkits/application.html.erb" do |contents|
assert_match "<title>Bukkits</title>", contents
- assert_match /stylesheet_link_tag\s+['"]bukkits\/application['"]/, contents
- assert_match /javascript_include_tag\s+['"]bukkits\/application['"]/, contents
+ assert_match(/stylesheet_link_tag\s+['"]bukkits\/application['"]/, contents)
+ assert_match(/javascript_include_tag\s+['"]bukkits\/application['"]/, contents)
end
end
@@ -241,7 +241,7 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
run_generator [destination_root, "--skip-test-unit"]
assert_no_file "test"
assert_file "bukkits.gemspec" do |contents|
- assert_no_match /s.test_files = Dir\["test\/\*\*\/\*"\]/, contents
+ assert_no_match(/s.test_files = Dir\["test\/\*\*\/\*"\]/, contents)
end
end