Closed IdahoEv closed 8 years ago
@IdahoEv - what version of waterpig were you using? I seem to remember updating waterpig because the kind of hooking it does is no longer possible. User specs can use after(:steps), but library code needs to go back to using `after(:each)
I don't have it in front of me but it was whatever version was in xing-application-base over the weekend. On Oct 21, 2015 21:01, "Judson Lester" notifications@github.com wrote:
@IdahoEv https://github.com/IdahoEv - what version of waterpig were you using? I seem to remember updating waterpig because the kind of hooking it does is no longer possible. User specs can use after(:steps), but library code needs to go back to using `after(:each)
— Reply to this email directly or view it on GitHub https://github.com/LRDesign/rspec-steps/issues/22#issuecomment-150100100 .
I'll pick this up over there then.
Confirming: that's XingFramework/xing-application-base@integration_specs_in_root_105523332 ?
This is confirmed as an issue with non-DSL tools using before(:steps) - Waterpig has been updated to correct this, and local spec_helper or spec_support files need to be as well. Consider before(:step) deprecated - use :each instead.
I attempted to convert xing-application-base to use rspec-steps 2.0.1. After patching shared_steps (see PR #7 ), waterpig's attempt to hook in after(:steps) in Waterpig::SnapStep.included results in the following error with RSpec: