Re: [rspec-users] Trouble making rspec-rails 2 work with webrat.

2011-01-09 Thread Rob Slifka
> > I was able to get things to work by moving "include Rack::Test::Methods" > into the configure block: > > RSpec.configure do |config| > config.include Rack::Test::Methods > ... > end > > You should _not_, however, have to do any such thing, so I'll look into > it and if I can address this in

Re: [rspec-users] Trouble making rspec-rails 2 work with webrat.

2010-11-30 Thread Jim Morris
cool that did fix it. thanks On Nov 30, 6:34 am, David Chelimsky wrote: > On Nov 29, 2010, at 8:05 PM, Jim Morris wrote: > > > > > Hi David, > > > I am using the current versions of everything rspec > > rspec (2.2.0,) > > rspec-core (2.2.1) > > rspec-expectations (2.2.0) > > rspec-mocks (2.2.0,)

Re: [rspec-users] Trouble making rspec-rails 2 work with webrat.

2010-11-30 Thread David Chelimsky
On Nov 29, 2010, at 8:05 PM, Jim Morris wrote: > Hi David, > > I am using the current versions of everything rspec > rspec (2.2.0,) > rspec-core (2.2.1) > rspec-expectations (2.2.0) > rspec-mocks (2.2.0,) > rspec-rails (2.2.0) > webrat (0.7.2) > rails(3.0.3) > > webrat is in Gemfile... > > gro

Re: [rspec-users] Trouble making rspec-rails 2 work with webrat.

2010-11-29 Thread Jim Morris
Hi David, I am using the current versions of everything rspec rspec (2.2.0,) rspec-core (2.2.1) rspec-expectations (2.2.0) rspec-mocks (2.2.0,) rspec-rails (2.2.0) webrat (0.7.2) rails(3.0.3) webrat is in Gemfile... group :test, :development do gem 'webrat' gem 'rspec-rails' end My spec is

Re: [rspec-users] Trouble making rspec-rails 2 work with webrat.

2010-11-29 Thread David Chelimsky
On Nov 29, 2010, at 4:44 PM, David Chelimsky wrote: > > On Nov 29, 2010, at 3:28 PM, Jim Morris wrote: > >> Sorry I may have been unclear >> >> When using the default spec_helper as generated from a fresh >> script/rails generate rspec:install >> I get the error... >> >> undefined method

Re: [rspec-users] Trouble making rspec-rails 2 work with webrat.

2010-11-29 Thread David Chelimsky
On Nov 29, 2010, at 3:28 PM, Jim Morris wrote: > Sorry I may have been unclear > > When using the default spec_helper as generated from a fresh > script/rails generate rspec:install > I get the error... > > undefined method `last_response' for > # > > This means something is not seeing the

Re: [rspec-users] Trouble making rspec-rails 2 work with webrat.

2010-11-29 Thread Jim Morris
Sorry I may have been unclear When using the default spec_helper as generated from a fresh script/rails generate rspec:install I get the error... undefined method `last_response' for # This means something is not seeing the Rack Test stuff. The second error is got when I add include Rack::

Re: [rspec-users] Trouble making rspec-rails 2 work with webrat.

2010-11-29 Thread Jim Morris
BGTW the spec is very simple... require 'spec_helper' describe "Logins" do describe "GET /login" do it "should be able to login" do get "/login" p response.body end end end the undefined method `last_response' for # comes from the p response.body On Nov 29, 7:18 am, Dav

Re: [rspec-users] Trouble making rspec-rails 2 work with webrat.

2010-11-29 Thread David Chelimsky
On Nov 29, 2010, at 4:58 AM, Jim Morris wrote: > Ok adding > > include Rack::Test::Methods > > to my spec_helper changed the error to > >Failure/Error: visit "/" > No response yet. Request a page first. > # /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/rack- > test-0.5.6

Re: [rspec-users] Trouble making rspec-rails 2 work with webrat.

2010-11-29 Thread Jim Morris
Ok adding include Rack::Test::Methods to my spec_helper changed the error to Failure/Error: visit "/" No response yet. Request a page first. # /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/rack- test-0.5.6/lib/rack/mock_session.rb:51:in `last_response' # /opt/ruby-

Re: [rspec-users] Trouble making rspec-rails 2 work with webrat.

2010-11-29 Thread Jim Morris
I don't get the stack level too deep but I do get undefined method `last_response' for # Which was supposed to be fixed ages ago. So did one fix break another? I have webrat using :rack config rspec 2.2.0, rspec-rails 2.2.0, webrat 0.7.2, rails 3.0.3 It looks to me like the webrat rack adapt

Re: [rspec-users] Trouble making rspec-rails 2 work with webrat.

2010-11-15 Thread David Chelimsky
On Nov 15, 2010, at 4:51 PM, Peter Havens wrote: > I'm having problems getting rspec-rails 2 request specs to work with > webrat. Any help would be appreciated. Here's my setup: > > ruby 1.9.2p0 > rails 3.0.1 > rspec-rails 2.1.0 > webrat 0.7.2 > > Here's the error I'm getting: > > $ rspec --bac