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

seanwalbran/rspec_around_all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Provides around(:all) hooks for RSpec.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages