https://github.com/okitan/rspec-absolutely_prepended_after_each
https://github.com/okitan/rspec-absolutely_prepended_after_each
gem outdated
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/okitan/rspec-absolutely_prepended_after_each
- Owner: okitan
- License: mit
- Created: 2013-03-04T23:47:48.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-05T07:14:27.000Z (over 13 years ago)
- Last Synced: 2025-09-21T07:19:37.153Z (10 months ago)
- Topics: gem, outdated
- Language: Ruby
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Rspec::AbsolutelyPrependedAfterEach [](https://travis-ci.org/okitan/rspec-absolutely_prepended_after_each) [](https://gemnasium.com/okitan/rspec-absolutely_prepended_after_each)
forcelly prepend at the top of the after:each
It suits for example:
* take screen shot of selenium test BEFORE the teardown of after hooks
## Installation
Add this line to your application's Gemfile:
gem 'rspec-absolutely_prepended_after_each'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rspec-absolutely_prepended_after_each
## Usage
```ruby
require "rspec/absolutely_prepended_after_each"
RSpec.configure do |config|
config.prepend_absolutely_after_each do
# codes you'd like to execute before every after(:each) blocks
end
end
```
```ruby
require "rspec/absolutely_prepended_after_each"
describe "some description" do
prepend_absoutely_after_each do
# codes you'd like to execute before every after(:each) blocks below
end
context "some context" do
after(:each) { "some teardown" }
end
end
```
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request