Sha256: 573f315f3853fc742abd0ddc2d67a3b3971ad9ce943599b924a622c610dbbd53
Contents?: true
Size: 1004 Bytes
Versions: 1
Compression:
Stored size: 1004 Bytes
Contents
module Quarry module Grammar # = Should Nomenclature # # The term *should* has become the defacto standard for # BDD assertions, so Quarry supports this nomenclature. # module Should # Same as #expect but only as a functor. # # 4.should == 3 #=> Expectation Error # def should return Expectation.new(:delegate=>self, :backtrace=>caller) end # Designate a negated expectation via a *functor*. # Read this as "should not". # # 4.should! == 4 #=> Expectation Error # # See also #expect! # def should! return Expectation.new(:delagte=>self, :negate=>true, :backtrace=>caller) end # See #should! method. # alias_method :should_not, :should! # #alias_method :should_raise, :assert_raises # #alias_method :should_not_raise, :assert_raises! end end class ::Object #:nodoc: include Grammar::Should end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quarry-0.5.0 | lib/quarry/grammar/should.rb |