rspec nested ( has many resource ) no route found error
Posted
by Surya
on Stack Overflow
See other posts from Stack Overflow
or by Surya
Published on 2010-06-12T21:43:55Z
Indexed on
2010/06/12
22:53 UTC
Read the original article
Hit count: 140
ruby-on-rails
|rspec
My calendar resource is a nested resource under profile
map.resources :profiles, :has_many=>[:calendar]
I am trying to write a rspec spec for calendarcontroller
it "should use supplied date" do
get :show , :month => '09' , :year => '2010' end
But i get an error stating
No route matches {:month=>"09", :year=>"2010", :controller=>"calendar", :action=>"show"}
Any idea how i could get around this ?
© Stack Overflow or respective owner