Re: [rspec-users] Can't access actions of a singular nested resource

2008-08-04 Thread Zach Dennis
On Mon, Aug 4, 2008 at 12:59 PM, J2M <[EMAIL PROTECTED]> wrote: > Zach, > > Rails 2.1 > Rspec 1.1.4 > > What does your spec look like? > http://gist.github.com/3651 -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspe

Re: [rspec-users] Can't access actions of a singular nested resource

2008-08-04 Thread J2M
Zach, Rails 2.1 Rspec 1.1.4 What does your spec look like? Thanks, James On Aug 4, 3:12 pm, "Zach Dennis" <[EMAIL PROTECTED]> wrote: > Bastien, > > What version of Rails and rspec are you using? Using a singular > resource like you presented works just fine for me, > > Zach > > > > On Thu, Jul

Re: [rspec-users] Can't access actions of a singular nested resource

2008-08-04 Thread Zach Dennis
Bastien, What version of Rails and rspec are you using? Using a singular resource like you presented works just fine for me, Zach On Thu, Jul 31, 2008 at 10:06 AM, Bastien <[EMAIL PROTECTED]> wrote: > I can't figure out what I do wrong there, I have a nested controller > which is defined as a si

Re: [rspec-users] Can't access actions of a singular nested resource

2008-08-03 Thread Pat Maddox
On Fri, Aug 1, 2008 at 4:41 AM, Bastien <[EMAIL PROTECTED]> wrote: > Thanks for your help Aslak, but I still didn't manage to make it pass > >>> get :show, :id=>"34" > > it sends me this error then : No route matches > {:action=>"show", :controller=>"surveys/report", :id=>"34"} What's your control

Re: [rspec-users] Can't access actions of a singular nested resource

2008-08-01 Thread aslak hellesoy
On Fri, Aug 1, 2008 at 10:41 AM, Bastien <[EMAIL PROTECTED]> wrote: > Thanks for your help Aslak, but I still didn't manage to make it pass > >>> get :show, :id=>"34" > > it sends me this error then : No route matches > {:action=>"show", :controller=>"surveys/report", :id=>"34"} > >>> Try rake rout

Re: [rspec-users] Can't access actions of a singular nested resource

2008-08-01 Thread Bastien
Thanks for your help Aslak, but I still didn't manage to make it pass >> get :show, :id=>"34" it sends me this error then : No route matches {:action=>"show", :controller=>"surveys/report", :id=>"34"} >> Try rake routes, and also try to spec the routing in the associated >> routing_spec.rb. and

Re: [rspec-users] Can't access actions of a singular nested resource

2008-07-31 Thread aslak hellesoy
On Thu, Jul 31, 2008 at 4:06 PM, Bastien <[EMAIL PROTECTED]> wrote: > I can't figure out what I do wrong there, I have a nested controller > which is defined as a singular resource, the routing works properly, > but inside my specs the request never goes through the show action. > > I keep on getti

Re: [rspec-users] Can't access actions of a singular nested resource

2008-07-31 Thread aslak hellesoy
On Thu, Jul 31, 2008 at 5:21 PM, aslak hellesoy <[EMAIL PROTECTED]> wrote: > On Thu, Jul 31, 2008 at 4:06 PM, Bastien <[EMAIL PROTECTED]> wrote: >> I can't figure out what I do wrong there, I have a nested controller >> which is defined as a singular resource, the routing works properly, >> but ins

[rspec-users] Can't access actions of a singular nested resource

2008-07-31 Thread Bastien
I can't figure out what I do wrong there, I have a nested controller which is defined as a singular resource, the routing works properly, but inside my specs the request never goes through the show action. I keep on getting this error : Spec::Mocks::MockExpectationError in 'Surveys::ReportControl