[rspec-users] [rspec] Stubbing partials in view specs

2009-01-20 Thread Bart Zonneveld
Hey list, As a good BDDer I want to test my views in isolation. And as a good rails programmer, I separate views into partials when needed. So, when testing my views, I want to stub out rendering of partials in my views. I'm working on upgrading an app from rails 2.1.2 to 2.2.2, using the

Re: [rspec-users] [rspec] Stubbing partials in view specs

2009-01-20 Thread David Chelimsky
On Tue, Jan 20, 2009 at 7:44 AM, Bart Zonneveld wrote: > Hey list, > > As a good BDDer I want to test my views in isolation. Sort of. A *good* BDDer wants to *specify* views in isolation. Testing is for testers :) > And as a good rails > programmer, I separate views into partials when needed. So

[rspec-users] [Cucumber, Merb, Webrat] undefined method 'response' for Merb::Test::World::Webrat

2009-01-20 Thread Daniel Vartanov
Hello! I get the following error everytime I try to check the result of previous step (by the way, I use default result_steps.rb): undefined local variable or method `response' for # (NameError) ./features/steps/result_steps.rb:14:in ` /^the (.*) ?request should fail/' features/authentication/logi

Re: [rspec-users] [rspec] Stubbing partials in view specs

2009-01-20 Thread Bart Zonneveld
On 20-jan-2009, at 15:29, David Chelimsky wrote: On Tue, Jan 20, 2009 at 7:44 AM, Bart Zonneveld wrote: Hey list, As a good BDDer I want to test my views in isolation. Sort of. A *good* BDDer wants to *specify* views in isolation. Testing is for testers :) You're right! I tend to talk a

[rspec-users] fixture_scenarios problem

2009-01-20 Thread Giuseppe Bertini
Hello there, is anyone still using fixture_scenarios with RSpec these days? They don't seem to coexist peacefully anymore. I just created a new rails (2.2.2) app, generated an rspec_scaffold (with v. 1.1.12), and verified that all specs pass. But if I then install the fixture_scenarios plugin: