Re: [rspec-users] undefined method 'get'

2011-03-13 Thread Mike Mazur
Hi, On Mar 13, 2011 10:11 PM, "David Chelimsky" wrote: > The `get` method is available in examples (the block passed to `it` or `specify`), but here it's being called in a group (the block passed to `describe` or context`). Yeah, don't know how I missed that! Mike __

Re: [rspec-users] undefined method 'get'

2011-03-13 Thread DBA
Indeed. David Chelimsky was kind enough to repair my noob mistake via twitter. What was happening was exactly what he described in his reply. More info at: https://gist.github.com/858446 Thanks, DBA ___ rspec-users mailing list rspec-users@rubyforge.org

Re: [rspec-users] undefined method 'get'

2011-03-13 Thread David Chelimsky
On Mar 7, 2011, at 1:30 AM, DBA wrote: > Hello guys, > > I was just starting a rails 3.0.5 application with rspec-rails 2.5.0 > and ruby 1.9.2-p180 and when I went to describe my controller I ran > into this undefined method 'get' error. > > Here's the spec that is causing the problem (which li

Re: [rspec-users] undefined method 'get'

2011-03-13 Thread Mike Mazur
Hi, On Mon, Mar 7, 2011 at 15:30, DBA wrote: > I was just starting a rails 3.0.5 application with rspec-rails 2.5.0 > and ruby 1.9.2-p180 and when I went to describe my controller I ran > into this undefined method 'get' error. > > Here's the spec that is causing the problem (which lives in the f

[rspec-users] undefined method 'get'

2011-03-13 Thread DBA
Hello guys, I was just starting a rails 3.0.5 application with rspec-rails 2.5.0 and ruby 1.9.2-p180 and when I went to describe my controller I ran into this undefined method 'get' error. Here's the spec that is causing the problem (which lives in the folder spec/controllers) require 'spec_help

Re: [rspec-users] undefined method get

2009-11-02 Thread BrianTheCoder
Thanks. I ended up just instantiating the rails integration session and operating off of that. Not the prettiest, but it does what I want it to. Also apparently the ActionController::Response breaks some methods that work on Rack::Response, go rails! *sarcasm* On Oct 31, 8:43 am, David Chelimsky

Re: [rspec-users] undefined method get

2009-10-31 Thread David Chelimsky
On Oct 29, 2009, at 6:04 PM, BrianTheCoder wrote: So here's the deal. Was using rack-test in rspec, cause I like passing paths instead of an action name, but it doesn't have access to the session, flash, cookies, etc. So I tried to switch to normal rspec and here's what I get (gist is working for

[rspec-users] undefined method get

2009-10-31 Thread BrianTheCoder
So here's the deal. Was using rack-test in rspec, cause I like passing paths instead of an action name, but it doesn't have access to the session, flash, cookies, etc. So I tried to switch to normal rspec and here's what I get (gist is working for me, so just pasting here) # error 1) NoMethodErro