Displaying 1 result from an estimated 1 matches for "fooitemscontrol".
2008 Jun 12
1
map.resources :foo_items, :as => :foo confusing my controller specs
...ttribute in resources to make the URI path be
''/foo'' instead of ''/foo_items'' the default/generated controller specs
for AdAssetsController become broken e.g.
it "should be successful" do
do_get
response.should be_success
end
''FooItemsController route generation should map { :controller =>
''foo_items'', :action => ''index'' } to /foo_items'' FAILED
expected: "/foo_items",
got: "/foo (using ==)
How can I make my controller spec honor the modified resource?
I searched thr...