Class: OSpec::Matcher

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

Instance Method Summary collapse

Constructor Details

#initialize(actual) ⇒ Matcher

Returns a new instance of Matcher.



3
4
5
# File 'lib/ospec/matchers.rb', line 3

def initialize actual
  @actual = actual
end

Instance Method Details

#failure(message) ⇒ Object



7
8
9
# File 'lib/ospec/matchers.rb', line 7

def failure message
  raise OSpec::ExpectationNotMetError, message
end