Sha256: b906d1a9df2673b0a8dbd7bbb6df5b28c9753ac70839929a21103412034624f1
Contents?: true
Size: 983 Bytes
Versions: 1
Compression:
Stored size: 983 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(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(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.2 | lib/quarry/grammar/should.rb |