Module: Rspec::PendingFor
- Defined in:
- lib/rspec/pending_for.rb,
lib/rspec/pending_for/build.rb,
lib/rspec/pending_for/version.rb,
lib/rspec/pending_for/engine_or_versions_required.rb
Overview
Use with Rspec by including in your example groups, just like any other Rspec helpers:
RSpec.configure do |c|
c.include Rspec::PendingFor
end
Defined Under Namespace
Classes: Build, EngineOrVersionsRequired
Constant Summary collapse
- VERSION =
'0.1.16'
Instance Method Summary collapse
-
#pending_for(options = {}) ⇒ Object
How to pend specs that break due to bugs in Ruby interpreters or versions.
-
#skip_for(options = {}) ⇒ Object
How to pend specs that break due to bugs in Ruby interpreters or versions.
Instance Method Details
#pending_for(options = {}) ⇒ Object
How to pend specs that break due to bugs in Ruby interpreters or versions
it("blah is blah") do
pending_for(engine: "ruby", versions: "2.1.5")
expect("blah").to eq "blah"
end
Not using named parameters because still supporting Ruby 1.9
26 27 28 |
# File 'lib/rspec/pending_for.rb', line 26 def pending_for( = {}) modify_example_with(:pending, ) end |
#skip_for(options = {}) ⇒ Object
How to pend specs that break due to bugs in Ruby interpreters or versions
it("blah is blah") do
skip_for(engine: "jruby", versions: "2.2.2")
expect("blah").to eq "blah"
end
Not using named parameters because still supporting Ruby 1.9
38 39 40 |
# File 'lib/rspec/pending_for.rb', line 38 def skip_for( = {}) modify_example_with(:skip, ) end |