Module Kernel
In: lib/rspec/expectations/extensions/kernel.rb

Methods

should   should_not  

Public Instance methods

Passes if matcher returns true. Available on every Object. @example

  actual.should eq(expected)
  actual.should be > 4

@param [Matcher]

  matcher

@param [String] message optional message to display when the expectation fails @return [Boolean] true if the expectation succeeds (else raises) @see RSpec::Matchers

Passes if matcher returns false. Available on every Object. @example

  actual.should_not eq(expected)

@param [Matcher]

  matcher

@param [String] message optional message to display when the expectation fails @return [Boolean] false if the negative expectation succeeds (else raises) @see RSpec::Matchers

[Validate]