Displaying 1 result from an estimated 1 matches for "hmm_controller".
Did you mean:
cms_controller
2006 Oct 26
2
Mocha and SimplyHelpful
...def index
@car = Car.find(1)
@car_dom_id = dom_id(@car)
end
end
Here''s my view:
#app/views/hmm/index.rhtml
<%= @car_dom_id %>
<%= dom_id(@car) %>
Here''s my test:
require File.dirname(__FILE__) + ''/../test_helper''
require ''hmm_controller''
# Re-raise errors caught by the controller.
class HmmController; def rescue_action(e) raise e end; end
class HmmControllerTest < Test::Unit::TestCase
fixtures :cars
def setup
@controller = HmmController.new
@request = ActionController::TestRequest.new
@respon...