Re: [rspec-users] [cucumber] how to debug cucumber with netbeans?

2009-05-09 Thread Jean-Michel Garnier
Jean-Michel Garnier wrote: > 3 months ago, I submitted a patch to cucumber so I could run cucumber from > a > ruby script and use the debugger in netbeans > (https://rspec.lighthouseapp.com/projects/16211/tickets/128-running-feature-from-ruby-script) > > It worked well at the time but I can't ma

[rspec-users] Weird bug in association extensions

2009-05-09 Thread court3nay
Hey all, just upgraded an older app to latest rspec and rails. This code runs fine in console but fails under rspec. class User has_many :statuses, :extend => Status:::AssociationExtension end module Status::AssociationExtensions def after(status) find(:first, :con

Re: [rspec-users] Sharing common Cuke steps

2009-05-09 Thread Matt Wynne
On 8 May 2009, at 15:24, aslak hellesoy wrote: So are you saying we'd put the steps in a gem, then include them using require? So I can do this in my env file: gem 'cucumber-steps' require 'cucumber/steps/webrat' require 'cucumber/steps/factory_girl' or in another pro

Re: [rspec-users] Sharing common Cuke steps

2009-05-09 Thread Stephen Eley
On Fri, May 8, 2009 at 10:24 AM, aslak hellesoy wrote: >> [ Matt Wynne: ] >> So are you saying we'd put the steps in a gem, then include them using >> require? > > Yes. Is there any reason not to accept them for inclusion in the Cucumber gem? You already have precedent with the Webrat steps. O

Re: [rspec-users] Sharing common Cuke steps

2009-05-09 Thread aslak hellesoy
> On Fri, May 8, 2009 at 10:24 AM, aslak hellesoy > wrote: > >> [ Matt Wynne: ] > >> So are you saying we'd put the steps in a gem, then include them using > require? > > > > Yes. > > Is there any reason not to accept them for inclusion in the Cucumber > gem? Yes. It becomes too big for me to ma

Re: [rspec-users] Weird bug in association extensions

2009-05-09 Thread David Chelimsky
On Sat, May 9, 2009 at 2:01 AM, court3nay wrote: > Hey all, just upgraded an older app to latest rspec and rails. This > code runs fine in console but fails under rspec. > >    class User >      has_many :statuses, :extend => Status:::AssociationExtension >    end > >    module Status::Association

Re: [rspec-users] Weird bug in association extensions

2009-05-09 Thread Scott Taylor
court3nay wrote: Hey all, just upgraded an older app to latest rspec and rails. This code runs fine in console but fails under rspec. class User has_many :statuses, :extend => Status:::AssociationExtension end module Status::AssociationExtensions def after(status)

Re: [rspec-users] [cucumber] -n command line option looks in every feature file

2009-05-09 Thread Mark Wilden
On Fri, May 8, 2009 at 7:06 PM, Ben Mabey wrote: > Mark Wilden wrote: > >> Running 'cucumber -n "asdf" features/challenge.feature' seems to load >> every feature file from the Rails root on down. In particular, it loads >> example features in vendor/gems like Ben's email_spec which requires Rails

Re: [rspec-users] [cucumber] how to debug cucumber with netbeans?

2009-05-09 Thread Ben Mabey
Jean-Michel Garnier wrote: Jean-Michel Garnier wrote: 3 months ago, I submitted a patch to cucumber so I could run cucumber from a ruby script and use the debugger in netbeans (https://rspec.lighthouseapp.com/projects/16211/tickets/128-running-feature-from-ruby-script) It worked well at the