[rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber

Thomas Marek ThomasMarek_ at web.de
Tue Oct 14 11:43:43 EDT 2008


I opened a ticket for that:
http://rspec.lighthouseapp.com/projects/16211/tickets/44-ability-to-teardown-failing-or-pending-scenarios-in-different-ways

Thomas

> -----Ursprüngliche Nachricht-----
> Von: "Michael Latta" <lattam at mac.com>
> Gesendet: 14.10.08 17:31:58
> An: rspec-users <rspec-users at rubyforge.org>
> Betreff: Re: [rspec-users] Cucumber: Migrating RSpec Story Listeners to	Cucumber


> Why use a cucumber_scenario method when the After method could just  
> pass it to the block?
> 
> Michael
> 
> 
> On Oct 14, 2008, at 1:31 AM, aslak hellesoy wrote:
> 
> > On Tue, Oct 14, 2008 at 9:38 AM, Thomas Marek <ThomasMarek_ at web.de>  
> > wrote:
> >> No advice on that?
> >>
> >> Should i open a ticket on Lighthouse?
> >
> > Please do.
> >
> >> I also would try to implement that...
> >>
> >
> > Great! Some suggestions:
> >
> > I'd like to be able to do something like this:
> >
> > After do
> >  # cucumber_scenario would return the Scenario instance
> >  # The cucumber_scenario method could be defined in a similar way to  
> > #run_step,
> >  # see Executor#define_step_call_methods
> >  if cucumber_scenario.successful?
> >    take_screenshot(cucumber_scenario.id) # Each scenario should have
> > a unique id that can be used in e.g. file names.
> >  end
> > end
> >
> > Aslak
> >
> >> Thanks,
> >> Thomas
> >>
> >>> -----Ursprüngliche Nachricht-----
> >>> Von: "Thomas Marek" <thomasmarek_ at web.de>
> >>> Gesendet: 09.10.08 15:25:14
> >>> An: rspec-users <rspec-users at rubyforge.org>
> >>> Betreff: [rspec-users] Cucumber: Migrating RSpec Story Listeners  
> >>> to Cucumber
> >>
> >>> Hello,
> >>>
> >>> i written a rails plugin for driving Selenium from
> >>> the RSpec Story Runner:
> >>>
> >>> http://github.com/tmak/rspec-rails-selenium-story
> >>>
> >>>
> >>> Now, i want to migrate my plugin to cucumber.
> >>>
> >>>
> >>> My question:
> >>> I used the scenario_failed method of the Story Listener to make
> >>> screenshots of failing story scenarios.
> >>> How can i do that with cucumber?
> >>>
> >>>
> >>> Thanks,
> >>> Thomas
> >>>
> >>> _______________________________________________
> >>> rspec-users mailing list
> >>> rspec-users at rubyforge.org
> >>> http://rubyforge.org/mailman/listinfo/rspec-users
> >>>
> >>
> >>
> >> _____________________________________________________________________
> >> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> >> http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
> >>
> >> _______________________________________________
> >> rspec-users mailing list
> >> rspec-users at rubyforge.org
> >> http://rubyforge.org/mailman/listinfo/rspec-users
> >>
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> 
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
> 


________________________________________________________________________
Schon gehört? Bei WEB.DE gibt' s viele kostenlose Spiele:
http://games.entertainment.web.de/de/entertainment/games/free/index.html



More information about the rspec-users mailing list