Re: [rspec-users] Cucumber Custom Logging

2008-11-25 Thread Joseph Wilk
James Byrne wrote: > Joseph Wilk wrote: >> >> I don't think this is the case. Every Before/After that is in a required >> file is run before a scenario. So in theory you could create one Before >> (in for example env.rb) which would get called for all scenarios. >> > > I experimented with the

Re: [rspec-users] Cucumber Custom Logging

2008-11-24 Thread James Byrne
Joseph Wilk wrote: > > I don't think this is the case. Every Before/After that is in a required > file is run before a scenario. So in theory you could create one Before > (in for example env.rb) which would get called for all scenarios. > I experimented with the following code in env.rb, borr

Re: [rspec-users] Cucumber Custom Logging

2008-11-24 Thread Joseph Wilk
>I gather that before / after block only work within >step files? If so then that requires each step file be modified to turn >custom logging on or off, which is something I would much rather avoid. I don't think this is the case. Every Before/After that is in a required file is run before a sc

Re: [rspec-users] Cucumber Custom Logging

2008-11-24 Thread James Byrne
James Byrne wrote: > logger.info("Running Scenario: #{scenario}" > ... > logger.info(" Running Step: #{step}" > ... should be: logger.info("Running Scenario: #{scenario}") and logger.info("Running Step: #{step}") -- Posted via http://www.ruby-forum.com/. ___

Re: [rspec-users] Cucumber Custom Logging

2008-11-24 Thread James Byrne
aslak hellesoy wrote: > On Mon, Nov 24, 2008 at 9:00 PM, James Byrne <[EMAIL PROTECTED]> > wrote: > >> > or other? >> >> Rails 2.2.2 >> > > It depends what you want to log and when. Have you tried to put it in a > Before or After block? > > I'm not sure exactly what you're trying to achieve. >

Re: [rspec-users] Cucumber Custom Logging

2008-11-24 Thread aslak hellesoy
On Mon, Nov 24, 2008 at 9:00 PM, James Byrne <[EMAIL PROTECTED]> wrote: > aslak hellesoy wrote: > > On Mon, Nov 24, 2008 at 8:40 PM, James Byrne <[EMAIL PROTECTED]> > > wrote: > > > >> Where and how do you put custom logger statements in cucumber? I > >> understood (more or less) how to do this i

Re: [rspec-users] Cucumber Custom Logging

2008-11-24 Thread James Byrne
aslak hellesoy wrote: > On Mon, Nov 24, 2008 at 8:40 PM, James Byrne <[EMAIL PROTECTED]> > wrote: > >> Where and how do you put custom logger statements in cucumber? I >> understood (more or less) how to do this in rspec in the spec_helper >> file but I do not know where to start with cucumber.

Re: [rspec-users] Cucumber Custom Logging

2008-11-24 Thread aslak hellesoy
On Mon, Nov 24, 2008 at 8:40 PM, James Byrne <[EMAIL PROTECTED]> wrote: > Where and how do you put custom logger statements in cucumber? I > understood (more or less) how to do this in rspec in the spec_helper > file but I do not know where to start with cucumber. > Are you using any particular

[rspec-users] Cucumber Custom Logging

2008-11-24 Thread James Byrne
Where and how do you put custom logger statements in cucumber? I understood (more or less) how to do this in rspec in the spec_helper file but I do not know where to start with cucumber. I want to add a simple identifying text line in the log file to assist in picking through the output. Somethi