Forum: RSpec Sinitra and Cucumber

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.
85d99e7678d8720f6e00ab0f60fe6ea9?d=identicon&s=25 Andrew Premdas (Guest)
on 2009-02-16 07:43
(Received via mailing list)
Hi all,

Anyone using cucumber with sinitra (current). Wondering if I need to use
Aslaks sinatra/webrat forks. Also if anyone has a sample app :)

All best

Andrew
0be0e4aa42aacd9a8a95c792de273ca7?d=identicon&s=25 Aslak Hellesøy (aslakhellesoy)
on 2009-02-16 11:10
(Received via mailing list)
On Mon, Feb 16, 2009 at 7:39 AM, Andrew Premdas <apremdas@gmail.com>
wrote:
> Hi all,
>
> Anyone using cucumber with sinitra (current). Wondering if I need to use
> Aslaks sinatra/webrat forks. Also if anyone has a sample app :)
>

I've created a ticket for it:
http://rspec.lighthouseapp.com/projects/16211-cucu...

Aslak
B3caad467711d49c6b05ef3844a4a18a?d=identicon&s=25 Steve Tooke (tooky)
on 2009-02-26 13:27
http://tooky.github.com/2009/02/05/getting-started...

Andrew Premdas wrote:
> Anyone using cucumber with sinitra (current). Wondering if I need to use
> Aslaks sinatra/webrat forks. Also if anyone has a sample app :)
0be0e4aa42aacd9a8a95c792de273ca7?d=identicon&s=25 Aslak Hellesøy (aslakhellesoy)
on 2009-02-26 14:02
(Received via mailing list)
On Thu, Feb 26, 2009 at 1:27 PM, Steve Tooky <lists@ruby-forum.com>
wrote:
> http://tooky.github.com/2009/02/05/getting-started...
>

 Rob Holland updated the wiki yesterday:
http://wiki.github.com/aslakhellesoy/cucumber/sinatra
(He reports that the $0 trick described in the blog doesn't work with
the latest Sinatra).
Rob also has an example in his fork, which I have yet to merge into my
repo:
http://github.com/robholland/cucumber/commit/0e12d...

Aslak
85d99e7678d8720f6e00ab0f60fe6ea9?d=identicon&s=25 Andrew Premdas (Guest)
on 2009-02-27 01:34
(Received via mailing list)
Thanks Steve much appreciated :)

2009/2/26 Steve Tooky <lists@ruby-forum.com>
B3caad467711d49c6b05ef3844a4a18a?d=identicon&s=25 Steve Tooke (tooky)
on 2009-02-27 15:04
Aslak Hellesøy wrote:
>  Rob Holland updated the wiki yesterday:
> http://wiki.github.com/aslakhellesoy/cucumber/sinatra
> (He reports that the $0 trick described in the blog doesn't work with
> the latest Sinatra).
> Rob also has an example in his fork, which I have yet to merge into my
> repo:
> http://github.com/robholland/cucumber/commit/0e12d...
>
> Aslak

Thanks, I've updated my blog to reflect.
0be0e4aa42aacd9a8a95c792de273ca7?d=identicon&s=25 Aslak Hellesøy (aslakhellesoy)
on 2009-02-27 16:03
(Received via mailing list)
> Aslak Hellesøy wrote:
>> Rob Holland updated the wiki yesterday:
>> http://wiki.github.com/aslakhellesoy/cucumber/sinatra
>> (He reports that the $0 trick described in the blog doesn't work with
>> the latest Sinatra).
>> Rob also has an example in his fork, which I have yet to merge into
>> my
>> repo:
>> http://github.com/robholland/cucumber/commit/0e12d...
>>

This is now in my master too.

Aslak
85d99e7678d8720f6e00ab0f60fe6ea9?d=identicon&s=25 Andrew Premdas (Guest)
on 2009-03-04 05:41
(Received via mailing list)
With Cuc and Rails I'd be able to debug step definitions by putting
'debugger' in the relevant step definition. With Sinatra configured as
above
this doesn't work. Any tips on making this work and/or explaining whats
different/

Cheers

Andrew

2009/2/27 Aslak Hellesøy <aslak.hellesoy@gmail.com>
1704ee42050c1ffe3e599e00dd9f2686?d=identicon&s=25 Rob Holland (Guest)
on 2009-03-04 10:41
(Received via mailing list)
On Wed, Mar 4, 2009 at 4:30 AM, Andrew Premdas <apremdas@gmail.com>
wrote:
> With Cuc and Rails I'd be able to debug step definitions by putting
> 'debugger' in the relevant step definition. With Sinatra configured as above
> this doesn't work. Any tips on making this work and/or explaining whats
> different/

Just use: require 'ruby-debug/debugger' where you'd normally use
debugger.

The difference is sinatra doesn't load ruby-debug itself.
85d99e7678d8720f6e00ab0f60fe6ea9?d=identicon&s=25 Andrew Premdas (Guest)
on 2009-03-04 15:38
(Received via mailing list)
Thanks alot - works a treat :)

2009/3/4 Rob Holland <rob.holland@gmail.com>
This topic is locked and can not be replied to.