Skip to content

Commit

Permalink
Fix misprints in assert_file & assert_instance_method docs
Browse files Browse the repository at this point in the history
  • Loading branch information
avakhov committed Apr 26, 2012
1 parent 8c16333 commit 2497fd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions railties/lib/rails/generators/test_case.rb
Expand Up @@ -79,8 +79,8 @@ def self.destination(path)
#
# Finally, when a block is given, it yields the file content:
#
# assert_file "app/controller/products_controller.rb" do |controller|
# assert_instance_method :index, content do |index|
# assert_file "app/controllers/products_controller.rb" do |controller|
# assert_instance_method :index, controller do |index|
# assert_match(/Product\.all/, index)
# end
# end
Expand Down Expand Up @@ -159,8 +159,8 @@ def assert_class_method(method, content, &block)
# Asserts the given method exists in the given content. When a block is given,
# it yields the content of the method.
#
# assert_file "app/controller/products_controller.rb" do |controller|
# assert_instance_method :index, content do |index|
# assert_file "app/controllers/products_controller.rb" do |controller|
# assert_instance_method :index, controller do |index|
# assert_match(/Product\.all/, index)
# end
# end
Expand Down

0 comments on commit 2497fd9

Please sign in to comment.