https://github.com/koic/dry_require_spec_helper
:golf: DRY (Don't Repeat Yourself) of `require 'spec_helper'`.
https://github.com/koic/dry_require_spec_helper
rspec ruby
Last synced: 2 months ago
JSON representation
:golf: DRY (Don't Repeat Yourself) of `require 'spec_helper'`.
- Host: GitHub
- URL: https://github.com/koic/dry_require_spec_helper
- Owner: koic
- License: mit
- Created: 2015-06-05T06:37:41.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-28T14:36:31.000Z (over 4 years ago)
- Last Synced: 2024-05-01T23:55:49.245Z (about 1 year ago)
- Topics: rspec, ruby
- Language: Ruby
- Homepage:
- Size: 40 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# dry_require_spec_helper [](https://travis-ci.org/koic/dry_require_spec_helper) [](http://badge.fury.io/rb/dry_require_spec_helper)
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](http://www.opensource.org/licenses/MIT).