diff options
author | Arun Agrawal <arun@fromjaipur.com> | 2011-09-04 08:24:02 +0530 |
---|---|---|
committer | Arun Agrawal <arun@fromjaipur.com> | 2011-09-04 08:24:02 +0530 |
commit | a6c60222c580e4002152b1ac1857673038b1fd42 (patch) | |
tree | fd7474d989ca79c655766109002e66b209529717 /railties/lib/rails | |
parent | c8d0dc376a72b976ccef17b8d0b413961b306a5f (diff) | |
download | rails-a6c60222c580e4002152b1ac1857673038b1fd42.tar.gz rails-a6c60222c580e4002152b1ac1857673038b1fd42.tar.bz2 rails-a6c60222c580e4002152b1ac1857673038b1fd42.zip |
Modified content in guides and comments
for "assert /" warnings.
Removed because if somebody will use this code
they will get warnings!
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/test_case.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/test_case.rb b/railties/lib/rails/generators/test_case.rb index ee85b70bb5..7319fb79f6 100644 --- a/railties/lib/rails/generators/test_case.rb +++ b/railties/lib/rails/generators/test_case.rb @@ -81,7 +81,7 @@ module Rails # # assert_file "app/controller/products_controller.rb" do |controller| # assert_instance_method :index, content do |index| - # assert_match /Product\.all/, index + # assert_match(/Product\.all/, index) # end # end # @@ -148,7 +148,7 @@ module Rails # # assert_migration "db/migrate/create_products.rb" do |migration| # assert_class_method :up, migration do |up| - # assert_match /create_table/, up + # assert_match(/create_table/, up) # end # end # @@ -161,7 +161,7 @@ module Rails # # assert_file "app/controller/products_controller.rb" do |controller| # assert_instance_method :index, content do |index| - # assert_match /Product\.all/, index + # assert_match(/Product\.all/, index) # end # end # |