search for: expected_options

Displaying 2 results from an estimated 2 matches for "expected_options".

2005 Dec 14
0
assert_generates and catch-all routes
I have a catch all route. map.connect ''people/*args'', :controller => ''people'', :action => ''default_action'' I can test this one way, with assert_recognizes. expected_options = { :controller => ''people'', :action => ''default_action'', :args => [''made_up''] } assert_recognizes expected_options, ''people/made_up'' I''m wondering why I cannot test the other way, using assert_generates? o...
2010 Feb 15
1
possible bug: using assert_recognizes with extras
Hi. I am trying to use the extras hash parameter in assert_recognizes. I am using. assert_recognizes(expected_options, path, extras={}, message=nil) I have something similar to the documentation: assert_recognizes {:controller => ''items'', :action => ''list'', :id => ''1'', :view => ''print''}, ''items/list/1'', { :view...