Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Latest commit

 

History

History
47 lines (32 loc) · 908 Bytes

README.md

File metadata and controls

47 lines (32 loc) · 908 Bytes

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.