Forum: RSpec [Cucumber, Merb, Webrat] undefined method 'response' for Merb::Test::World::Webrat

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2160f04d1ee1ee303eb528580e8830d7?d=identicon&s=25 Daniel Vartanov (daniel-vartanov)
on 2009-01-20 16:16
(Received via mailing list)
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
#<Merb::Test::World::Webrat:0x7f083c7860b8> (NameError)
./features/steps/result_steps.rb:14:in ` /^the (.*) ?request should
fail/'
features/authentication/login.feature:17:in `/^the (.*) ?request should
fail/'

It is raised even in a freshly generated merb application (merb-gen app)
and
freshly generated cucumber files (merb-gen cucumber --session-type
webrat).

Here are the versions of the installed gems:
cucumber (0.1.15)
merb (1.0.8)
webrat (0.4.0)
david-merb_cucumber (0.5.1.2)

Where should I search for the source of the problem?
0c814eb0dfb9f6c98a95df9a45a35e80?d=identicon&s=25 Justin Smestad (jsmestad)
on 2009-01-25 03:13
Daniel, I have fixed this in my fork:
http://github.com/jsmestad/merb_cucumber/tree/master

Daniel Vartanov wrote:
> undefined local variable or method `response' for
> #<Merb::Test::World::Webrat:0x7f083c7860b8> (NameError)
> ./features/steps/result_steps.rb:14:in ` /^the (.*) ?request should
> fail/'
> features/authentication/login.feature:17:in `/^the (.*) ?request should
> fail/'
> Here are the versions of the installed gems:
> cucumber (0.1.15)
> merb (1.0.8)
> webrat (0.4.0)
> david-merb_cucumber (0.5.1.2)
C31c7255fa4488dfc5d766403b497a36?d=identicon&s=25 Jim Morris (wolfmanjm)
on 2009-02-01 08:58
Justin Smestad wrote:
> Daniel, I have fixed this in my fork:
> http://github.com/jsmestad/merb_cucumber/tree/master
>

I still get the same error after installing
jsmestad-merb_cucumber-0.5.1.3 from gems.github.com
Did the version get bumped OK? or do I need to clone and build locally?

Thanks
C31c7255fa4488dfc5d766403b497a36?d=identicon&s=25 Jim Morris (wolfmanjm)
on 2009-02-01 09:04
Jim Morris wrote:
> Justin Smestad wrote:
>> Daniel, I have fixed this in my fork:
>> http://github.com/jsmestad/merb_cucumber/tree/master
>>
>
> I still get the same error after installing
> jsmestad-merb_cucumber-0.5.1.3 from gems.github.com
> Did the version get bumped OK? or do I need to clone and build locally?
>
> Thanks

never mind, NOTE you have to redo the...

merb-gen cucumber --session-type webrat

after installing your fixed version.

Thanks
33fa6a2d8baf81dfaec946b6a1e6aae5?d=identicon&s=25 Jai-gouk Kim (jaigouk)
on 2009-02-12 13:28
Justin Smestad wrote:
> Daniel, I have fixed this in my fork:
> http://github.com/jsmestad/merb_cucumber/tree/master
>
Thanks! IT WORKS!
7cb549282723e8e29549b07469b61639?d=identicon&s=25 deimos1986 (Guest)
on 2009-02-13 19:48
(Received via mailing list)
Hi Jim,
Just want to say thanks for fixing this. It blocked me for a day
trying to figure out what broke. Any chance of trying to get this
pulled into david's branch as most tutorials reference his branch.

Cheers,
Matt
C31c7255fa4488dfc5d766403b497a36?d=identicon&s=25 Jim Morris (wolfmanjm)
on 2009-02-13 20:20
deimos1986 wrote:
> Hi Jim,
> Just want to say thanks for fixing this. It blocked me for a day
> trying to figure out what broke. Any chance of trying to get this
> pulled into david's branch as most tutorials reference his branch.
>
> Cheers,
> Matt

It was Justin, I just benefited from his work...

and +1 for getting it merged into Davids branch.
This topic is locked and can not be replied to.