[rspec-users] [Cucumber] how to get name from scenario hook?

Jim Morris wolfmanjm at gmail.com
Fri May 1 16:21:18 EDT 2009


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.

Thanks


More information about the rspec-users mailing list