Forum: RSpec After block

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ee6788c2faaad7a5cd0bc466c9ea60d8?d=identicon&s=25 aidy lewis (Guest)
on 2008-12-23 17:29
(Received via mailing list)
Hi,

Is the way to figure out the the last scenario executed in the After
block?

Aidy
Ff937b6907db49432c980f2b6a5c7e71?d=identicon&s=25 Mischa Fierer (mischa)
on 2008-12-23 23:42
(Received via mailing list)
you could mess around with what cucumber is doing, like

   @__executor.instance_variable_get("@executed_scenarios")


There may be an easier way that I'm not aware of.
This topic is locked and can not be replied to.