Re: [rspec-users] controller specs with non-RESTful routes

2009-09-26 Thread giuseb
Steve, > Giuseppe: have you tried running 'rake routes' to see what the > application thinks you valid routes are?  Reconciling that with what's > going on in routes.rb is a good next step. The following line is the whole of the 'rake routes' output: accept_invitation /accept_invitation/:id {:a

Re: [rspec-users] controller specs with non-RESTful routes

2009-09-26 Thread David Chelimsky
On Sat, Sep 26, 2009 at 9:44 AM, giuseb wrote: >> > So sorry, I must be missing something. >> > I am looking right now at this page: >> >> >http://www.ruby-forum.com/topic/195172 >> >> Well - that _should_ be one of two correct URLs. The forum is mirrored >> w/ a google group. I see there are post

Re: [rspec-users] controller specs with non-RESTful routes

2009-09-26 Thread David Chelimsky
On Sat, Sep 26, 2009 at 11:49 AM, giuseb wrote: >> The bad news is that this is a deficiency the underlying Rails testing >> framework that rspec-rails wraps. I tried the same example in a rails >> functional test and got the same failure: >> >> class InvitationsControllerTest < ActionController::

Re: [rspec-users] controller specs with non-RESTful routes

2009-09-26 Thread giuseb
> The bad news is that this is a deficiency the underlying Rails testing > framework that rspec-rails wraps. I tried the same example in a rails > functional test and got the same failure: > > class InvitationsControllerTest < ActionController::TestCase > >   test "the post accept invitation should

Re: [rspec-users] controller specs with non-RESTful routes

2009-09-26 Thread giuseb
> > So sorry, I must be missing something. > > I am looking right now at this page: > > >http://www.ruby-forum.com/topic/195172 > > Well - that _should_ be one of two correct URLs. The forum is mirrored > w/ a google group. I see there are posts missing from the forum, but I > see all the posts in

Re: [rspec-users] controller specs with non-RESTful routes

2009-09-26 Thread Stephen Eley
On Sat, Sep 26, 2009 at 10:28 AM, David Chelimsky wrote: > > We don't offer much help, as Matt doesn't see a problem and I can't > reproduce it - but at least we tried to play :) I'll take a turn! Helps me procrastinate on my own stuff. >8-> Giuseppe: have you tried running 'rake routes' to se

Re: [rspec-users] controller specs with non-RESTful routes

2009-09-26 Thread David Chelimsky
On Sat, Sep 26, 2009 at 8:10 AM, Giuseppe Bertini wrote: >> Huh? Pretty please what? Matt and I have both responded. In my case I >> asked you about the versions you have. You didn't quote any of the >> previous posts in this thread, so I have no idea what you're asking >> for at this point. Did y

Re: [rspec-users] controller specs with non-RESTful routes

2009-09-26 Thread Giuseppe Bertini
> Huh? Pretty please what? Matt and I have both responded. In my case I > asked you about the versions you have. You didn't quote any of the > previous posts in this thread, so I have no idea what you're asking > for at this point. Did you receive our responses? So sorry, I must be missing somethi

Re: [rspec-users] controller specs with non-RESTful routes

2009-09-26 Thread David Chelimsky
On Sat, Sep 26, 2009 at 1:56 AM, Giuseppe Bertini wrote: > Pretty please? :) Huh? Pretty please what? Matt and I have both responded. In my case I asked you about the versions you have. You didn't quote any of the previous posts in this thread, so I have no idea what you're asking for at this poi

Re: [rspec-users] controller specs with non-RESTful routes

2009-09-26 Thread Giuseppe Bertini
Pretty please? :) -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] controller specs with non-RESTful routes

2009-09-14 Thread David Chelimsky
On Fri, Sep 11, 2009 at 3:28 PM, Giuseppe Bertini wrote: > Hello list, > this should be an easy one, but I seem to be stuck. > What is the proper way to mimic a POST request for a named, non-RESTful > route? > > here's the route and the rest of the setup: > > map.accept_invitation '/accept_invitat

Re: [rspec-users] controller specs with non-RESTful routes

2009-09-14 Thread Matt Wynne
On 11 Sep 2009, at 21:28, Giuseppe Bertini wrote: Hello list, this should be an easy one, but I seem to be stuck. What is the proper way to mimic a POST request for a named, non- RESTful route? here's the route and the rest of the setup: map.accept_invitation '/accept_invitation/:id', :cont

[rspec-users] controller specs with non-RESTful routes

2009-09-11 Thread Giuseppe Bertini
Hello list, this should be an easy one, but I seem to be stuck. What is the proper way to mimic a POST request for a named, non-RESTful route? here's the route and the rest of the setup: map.accept_invitation '/accept_invitation/:id', :controller => "invitations", :action => "accept", :method =>