Class: Object

Inherits:
BasicObject
Defined in:
lib/quarry/assertion.rb,
lib/quarry/assert/must.rb,
lib/quarry/assert/should.rb

Overview

Copyright © 2008 Tiger Ops

Instance Method Summary collapse

Instance Method Details

#assertObject Also known as: must, should

Assert a operational relationship.

4.assert == 3 #=> Assertion Error



8
9
10
# File 'lib/quarry/assertion.rb', line 8

def assert
  return Assertion::True.new(self)
end

#assert!Object Also known as: must!, must_not, should!, should_not, shouldnt

Assert not an operational relationship.

4.assert! == 4 #=> Assertion Error



16
17
18
# File 'lib/quarry/assertion.rb', line 16

def assert!
  return Assertion::False.new(self)
end