Class: OSpec::NegativeOperatorMatcher

Inherits:
Matcher show all
Defined in:
lib/ospec/matchers.rb

Instance Method Summary collapse

Methods inherited from Matcher

#failure, #initialize

Constructor Details

This class inherits a constructor from OSpec::Matcher

Instance Method Details

#==(expected) ⇒ Object



23
24
25
26
27
# File 'lib/ospec/matchers.rb', line 23

def == expected
  if @actual == expected
    failure "expected: #{expected.inspect} not to be #{@actual.inspect} (using ==)."
  end
end