No commit activity in last 3 years
No release in over 3 years
absolutely prepended after(:each) in rspec
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

~> 2.0
 Project Readme

Rspec::AbsolutelyPrependedAfterEach Build Status Dependency Status

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

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
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