Rspec::Todo
todo: pending if failed not_todo: result errors if passed
Installation
Add this line to your application's Gemfile:
gem 'rspec-todo'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rspec-todo
Usage
require "rspec/todo"
describe "rspec-todo" do
include ::RSpec::Todo
it "todo results pending if failed" do
todo {
# your test code which may fail and will fix later
}
end
it "not_todo report error when test passed" do
not_todo {
# your test code which is not correct but cannot fix for some reason
# (e.g. released with the bug and user have already integrated system using the bug)
}
end
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request