Class: Micronaut::Matchers::OperatorMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/micronaut/matchers/operator_matcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(actual) ⇒ OperatorMatcher

Returns a new instance of OperatorMatcher.



5
6
7
# File 'lib/micronaut/matchers/operator_matcher.rb', line 5

def initialize(actual)
  @actual = actual
end

Instance Method Details

#descriptionObject



21
22
23
# File 'lib/micronaut/matchers/operator_matcher.rb', line 21

def description
  "#{@operator} #{@expected.inspect}"
end

#fail_with_message(message) ⇒ Object



17
18
19
# File 'lib/micronaut/matchers/operator_matcher.rb', line 17

def fail_with_message(message)
  Micronaut::Expectations.fail_with(message, @expected, @actual)
end