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.
aidy lewis (Guest)
on 2008-12-23 18:29
(Received via mailing list)
Hi,

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

Aidy
Mischa F. (Guest)
on 2008-12-24 00: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.