No commit activity in last 3 years
No release in over 3 years
DRY (Don't Repeat Yourself) of require 'spec_helper'.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 3.0.0
 Project Readme

dry_require_spec_helper Build Status Gem Version

DRY (Don't Repeat Yourself) of require 'spec_helper'.

FEATURES

  • append --require spec_helper to .rspec file.
  • remove require 'spec_helper' from spec files (i.e. ./spec/**/*_spec.rb in your current working directory) .

A little more in detail

append --require rails_helper to .rspec file if rspec-rails >= 3.0.0 in Gemfile.lock.

otherwise append --require spec_helper to .rspec file.

HOW TO USE

$ cd /path/to/dir         # recommended git repository
$ dry_require_spec_helper # *** immediate effect ***

REQUIREMENTS

no requirements

INSTALL

$ gem install dry_require_spec_helper

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

License

dry_require_spec_helper is released under the MIT License.