Module: Cukunity::SpecHelpers
- Defined in:
- lib/cukunity/cucumber/support/spec_helpers.rb
Instance Method Summary collapse
Instance Method Details
#should(negation, target, *args) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/cukunity/cucumber/support/spec_helpers.rb', line 3 def should(negation, target, *args) if negation target.should_not *args else target.should *args end end |
#should_equal(negation, target, arg) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/cukunity/cucumber/support/spec_helpers.rb', line 11 def should_equal(negation, target, arg) if negation target.should_not == arg else target.should == arg end end |