> Hi,
>
> Given the hook:
>
> After do |scenario|
>
> end
>
> How do I get the name of the scenario from the scenario parameter?
>
> scenario.name doesn't  work, and I looked through the source code and
> it was not immediately obvious to me.
>

You can call to_sexp on it and get it from there. Or you can file a
Lighthouse ticket if you want the #name accessor.


>
> Thanks
> _______________________________________________
> rspec-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to