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-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] rspec-2.2 is released!

2010-11-29 Thread Chuck Remes
On Nov 28, 2010, at 4:35 PM, David Chelimsky wrote: > ### rspec-core-2.2.0 > > > * Performance improvments (see > [Upgrade.markdown](https://github.com/rspec/rspec-core/blob/master/Upgrade.markdown)) Wow, the perf improvements are *much* appreciated! My test suite (MRI 1.9.2p0) with 3300 ex

Re: [rspec-users] no such file to load - spec/test/unit

2010-11-29 Thread James Palmer
Thanks David, I actually had a "require" statement in my code for Test Unit that shouldn't have been there - the problem appears to not have been rspec related at all. Thanks! James -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing l

Re: [rspec-users] rspec-2.2 is released!

2010-11-29 Thread David Chelimsky
On Nov 29, 2010, at 8:04 AM, Chuck Remes wrote: > > On Nov 28, 2010, at 4:35 PM, David Chelimsky wrote: > >> ### rspec-core-2.2.0 >> >> >> * Performance improvments (see >> [Upgrade.markdown](https://github.com/rspec/rspec-core/blob/master/Upgrade.markdown)) > > Wow, the perf improvements ar

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] How To Mock A Chain (specifically ActionMailerModel.method.deliver)

2010-11-29 Thread Jack Kinsella
Cheers, very insightful. I liked your point about ease of testing having an inherent value. On Nov 25, 12:22 pm, David Chelimsky wrote: > On Wed, Nov 17, 2010 at 12:49 PM, Jack Kinsella > wrote: > > Hi, > > > In Rails 3 you deliver a mail message with the > > ActionMailerModel.method.deliver sy

[rspec-users] rspec-core-2.2.1 is released!

2010-11-29 Thread David Chelimsky
### rspec-core-2.2.1 / 2010-11-28 [full changelog](http://github.com/rspec/rspec-core/compare/v2.2.0...master) * Bug fixes * alias_method instead of override Kernel#method_missing (John Wilger) * changed --autotest to --tty in generated command (MIKAMI Yoshiyuki) * revert change to debugge

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 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::

[rspec-users] [TDD] [Rails] - Rspec test for application_helper.rb fails when trying to access application_controller method.

2010-11-29 Thread John Bruce
In a method named logo in my application helper, I reference an application controller method (current_account) that has been marked as a helper method with the following syntax: helper_method :current_account When I test out the setup in the browser (without rspec), rails is happy with this

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 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] rspec2, rails 3, subdomain constraints

2010-11-29 Thread jrbruce
On Nov 25, 5:03 am, Evgeniy Dolzhenko wrote: > https://rails.lighthouseapp.com/projects/8994/tickets/5805-assert_rec... > anyone? > > I appreciate the reply. Given that these routing constraints are core to my application do you have any suggestions as to how to test this in the meantime? It makes

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