Module Matchy::Modals
In: lib/matchy/modals.rb

Methods

should   should_not   will   will_not   wont  

Public Instance methods

Tests an expectation against the given object.

Examples

  "hello".should eql("hello")
  13.should equal(13)
  lambda { raise "u r doomed" }.should raise_error

Tests that an expectation doesn‘t match the given object.

Examples

  "hello".should_not eql("hi")
  41.should_not equal(13)
  lambda { "savd bai da bell" }.should_not raise_error
will(expectation = nil)

Alias for should

will_not(expectation = nil)

Alias for should_not

wont(expectation = nil)

Alias for should_not

[Validate]