Hi Guys,
If I am generating diagnostics from a before do step can I get the
name of the scenario?
Many thanks,
Tim
Hi Guys,
If I am generating diagnostics from a before do step can I get the
name of the scenario?
Many thanks,
Tim
On Wed, Mar 11, 2009 at 4:12 PM, Tim W. [email protected] wrote:
Hi Guys,
If I am generating diagnostics from a before do step can I get the
name of the scenario?
This is implemented in 0.1.99.x:
http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/44
Aslak
That did the trick. Thanks Aslak! Took a little while to figure out
where it was in the Scenario object but it was pretty straight forward
from there.
T
On Wed, Mar 11, 2009 at 10:21 AM, aslak hellesoy
Where in the scenario object is the name stored?
Cheers.
Nigel
walketim wrote:
Aslak
–
View this message in context:
http://www.nabble.com/-cucumber--getting-scenario-name-in-hook-tp22457271p22613814.html
Sent from the rspec-users mailing list archive at Nabble.com.
On Fri, Mar 20, 2009 at 12:26 PM, Tim W. [email protected] wrote:
We’re accessing it like this…
Before do |scenario|
puts “Before Scenario: #{scenario.to_sexp[3]}”
.
.
.
end
I like that even if it’s a little convoluted - I’m trying to avoid
exposing
every single attribute.
Aslak
We’re accessing it like this…
Before do |scenario|
puts “Before Scenario: #{scenario.to_sexp[3]}”
.
.
.
end
HTH,
Tim
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs