Displaying 1 result from an estimated 1 matches for "_jewels_exhibition_".
2006 Jul 05
2
How to write get functional test when there is no action by that name
I have following line in route.rb
#event info for an event name
map.connect ''event/:name_url'',:controller => ''home'',:action =>
''event_info''
It causes a URL like http://localhost:3000/event/_jewels_exhibition_ to be
sent to the home controller with action as ''event_info''.
I am trying to test this action. My first gut was to write something like
def test_event_info
get :event_info
assert_response :success
end
But this doesn''t work.
Does anyone have any idea how t...