[rspec-users] Problems with RESTfully generated helpers

David Chelimsky dchelimsky at gmail.com
Thu Aug 9 20:31:14 EDT 2007


On 8/9/07, Lance Carlson <lancecarlson at gmail.com> wrote:
> Is it possible that rspec is not pulling the instance variables into
> the method because this method is being defined before instance
> variables in parameters are assigned to that method? I'm trying to
> hone down where the problem is popping up exactly. Any insight?

Not really more than what I said earlier in this thread.

> On 8/9/07, David Chelimsky <dchelimsky at gmail.com> wrote:
> > On 8/9/07, Lance Carlson <lancecarlson at gmail.com> wrote:
> > > Were you able to come up with any solutions?
> >
> > Nope. Anyone else?
> >
> > >
> > > On 8/8/07, David Chelimsky <dchelimsky at gmail.com> wrote:
> > > > On 8/8/07, Lance Carlson <lancecarlson at gmail.com> wrote:
> > > > > Awesome! Thank you! :)
> > > >
> > > > Don't thank me yet. I've spent some time trying to track this down and
> > > > I've found my way into some methods in routing.rb that are dynamically
> > > > generated (and so you can't )(*&)(*& read them to debug them quite so
> > > > easily) that call the methods (in your case) label_id_value and
> > > > id_value (being the artist id). I have no idea yet where those two
> > > > methods get generated. Once I do, then we can stub them. Unfortunately
> > > > I can't really spend any more time on this right now (though I'd love
> > > > to solve it).
> > > >
> > > > In the mean time, you'll just have to use the parameters if you want
> > > > the specs to work with the same code with which your app works.
> > > >
> > > >
> > > > >
> > > > > On 8/8/07, David Chelimsky <dchelimsky at gmail.com> wrote:
> > > > > > On 8/8/07, Lance Carlson <lancecarlson at gmail.com> wrote:
> > > > > > > I just visited the action in my browser and i don't get any errors. I
> > > > > > > am also running on edge rails as the application relies on
> > > > > > > ActiveResource. Can you show me the code you created?
> > > > > >
> > > > > > OK - I've created a small project and am able to reproduce the
> > > > > > behaviour you're describing. I'll follow up when learn something.
> > > > > >
> > > > > > David
> > > > > > _______________________________________________
> > > > > > rspec-users mailing list
> > > > > > rspec-users at rubyforge.org
> > > > > > http://rubyforge.org/mailman/listinfo/rspec-users
> > > > > >
> > > > > _______________________________________________
> > > > > rspec-users mailing list
> > > > > rspec-users at rubyforge.org
> > > > > http://rubyforge.org/mailman/listinfo/rspec-users
> > > > >
> > > > _______________________________________________
> > > > rspec-users mailing list
> > > > rspec-users at rubyforge.org
> > > > http://rubyforge.org/mailman/listinfo/rspec-users
> > > >
> > > _______________________________________________
> > > rspec-users mailing list
> > > rspec-users at rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/rspec-users
> > >
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list