jimweirich / rspec-given

Given/When/Then keywords for RSpec Specifications
https://github.com/jimweirich/rspec-given
MIT License
653 stars 61 forks source link

after(:each) hook? #48

Closed ronen closed 9 years ago

ronen commented 9 years ago

Every now & then I want to include an after(:each) hook in a context, but the README doesn't document whether it would be expected to work and/or whether there are any special caveats.

I suppose it could even be nice to extend the syntax with a new keyword such as Teardown or Cleanup or Finally or Tidy or something

     Given { ... }
     When { ... }
     Then { ... }
     Cleanup { ... }
ronen commented 9 years ago

Moved this to the new repo rspec-given/rspec-given#3