0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Provides around(:all) hook for RSpec
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.0

Runtime

>= 2.0
 Project Readme

Build Status

RSpec Around All

Provides around(:all) hooks for RSpec.

Usage

In your Gemfile:

gem 'rspec_around_all', require: false

In a spec:

require 'rspec_around_all'

describe "MyClass" do
  around(:all) do |group|
    # do something before
    group.run_examples
    # do something after
  end

  # or...
  around(:all) do |group|
    transactionally(&group)
  end
end

See also the original blog post about this.

Contributing

  • Fork the project
  • Add tests
  • Fix the issue / add the feature
  • Submit pull request on github

Copyright

Copyright (c) 2012-2013 Myron Marston. Released under the terms of the MIT license. See LICENSE for details.