Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix misprints in assert_file & assert_instance_method docs

  • Loading branch information...
commit 2497fd90f45231c969d8fab772ebcaa252a288c6 1 parent 8c16333
@avakhov avakhov authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 railties/lib/rails/generators/test_case.rb
View
8 railties/lib/rails/generators/test_case.rb
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.