Re: [rspec-users] Cucumber: The Mysteries of Before(), After(), World() etc

2008-11-13 Thread Peter Jaros
On Wed, Nov 12, 2008 at 8:59 AM, David Chelimsky [EMAIL PROTECTED] wrote: On Wed, Nov 12, 2008 at 7:30 AM, aslak hellesoy [EMAIL PROTECTED] wrote: World do world = Object.new world.extend(Logging::Logger) world end World do returning Cucumber::Rails::World do |world|

Re: [rspec-users] Cucumber: The Mysteries of Before(), After(), World() etc

2008-11-13 Thread Matt Wynne
On 13 Nov 2008, at 15:01, David Chelimsky wrote: On Thu, Nov 13, 2008 at 8:59 AM, Peter Jaros [EMAIL PROTECTED] wrote: On Wed, Nov 12, 2008 at 8:59 AM, David Chelimsky [EMAIL PROTECTED] wrote: On Wed, Nov 12, 2008 at 7:30 AM, aslak hellesoy [EMAIL PROTECTED] wrote: World do world =

Re: [rspec-users] Cucumber: The Mysteries of Before(), After(), World() etc

2008-11-13 Thread aslak hellesoy
On Thu, Nov 13, 2008 at 3:59 PM, Peter Jaros [EMAIL PROTECTED] wrote: On Wed, Nov 12, 2008 at 8:59 AM, David Chelimsky [EMAIL PROTECTED] wrote: On Wed, Nov 12, 2008 at 7:30 AM, aslak hellesoy [EMAIL PROTECTED] wrote: World do world = Object.new world.extend(Logging::Logger) world end

Re: [rspec-users] Cucumber: The Mysteries of Before(), After(), World() etc

2008-11-13 Thread Peter Jaros
On Thu, Nov 13, 2008 at 10:01 AM, David Chelimsky [EMAIL PROTECTED] wrote: That's a cool idea - can you put a feature request in lighthouse? Done: http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/87-yield-existing-world-object-to-world-block Peter

[rspec-users] Cucumber: The Mysteries of Before(), After(), World() etc

2008-11-12 Thread Matt Wynne
My use case is that I want to be able to use a Logging::Logger[1] within my scenario code. I can create the logger explicitly within the step block, but this is a hackaround. I think I could monkey-patch Cucumber::Rails::World to include my logger, but that also feels dirty. Is there a

Re: [rspec-users] Cucumber: The Mysteries of Before(), After(), World() etc

2008-11-12 Thread aslak hellesoy
On Wed, Nov 12, 2008 at 2:12 PM, Matt Wynne [EMAIL PROTECTED] wrote: My use case is that I want to be able to use a Logging::Logger[1] within my scenario code. I can create the logger explicitly within the step block, but this is a hackaround. I think I could monkey-patch

Re: [rspec-users] Cucumber: The Mysteries of Before(), After(), World() etc

2008-11-12 Thread David Chelimsky
On Wed, Nov 12, 2008 at 7:30 AM, aslak hellesoy [EMAIL PROTECTED] wrote: On Wed, Nov 12, 2008 at 2:12 PM, Matt Wynne [EMAIL PROTECTED] wrote: My use case is that I want to be able to use a Logging::Logger[1] within my scenario code. I can create the logger explicitly within the step block,