rails/rails — pull request #8461 by frodsan (2012-12-08 01:19:11+00:00)
Title: Fix #assert_instance_method to also assert indented methods

Now we can assert private methods (Rails style) in templates:

class ProductController < ActionController::Base
...
private

def set_product
...
end
end

assert_file "app/controllers/products_controller.rb" do |controller|
assert_instance_method :set_product, controller
end