RspecRake
Description
RSpecRake makes easier to configure rspec of rake tasks.
Installation
gem install rspec_rake
Usage
Write configuration for rake tests in your rails_helper.rb
or spec_helper.rb
RSpecRake.configure do |config|
config.require_tasks(File.join('your', 'rake-task', 'dir-path'))
config.auto_reenable = true # Optinal
end
.auto_reenable
is what?
Rake::Task
can invoke task only 1 time because it has #already_invoked
flag.
But we often want to invoke more in specs.
So if you want to invoke more than 1 time, use auto_reenable
option.
Be careful your specs doesn't go infinite loop :smiling_imp:
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/bakunyo/rspec_rake. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
Released under the MIT License. See the LICENSE file for further details.