Class: ActiveOperation::Matcher::Execution::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/active_operation/matcher/execution.rb

Direct Known Subclasses

HaltWhilePerforming, SucceedToPerform

Instance Method Summary collapse

Instance Method Details

#and_return(result) ⇒ Object



5
6
7
8
# File 'lib/active_operation/matcher/execution.rb', line 5

def and_return(result)
  @result = result
  self
end

#failure_messageObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/active_operation/matcher/execution.rb', line 15

def failure_message
  raise NotImplementedError, "Expected #{self.class} to implement ##{__callee__}"
end

#failure_message_when_negatedObject Also known as: negative_failure_message

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/active_operation/matcher/execution.rb', line 19

def failure_message_when_negated
  raise NotImplementedError, "Expected #{self.class} to implement ##{__callee__}"
end

#when_initialized_with(*input) ⇒ Object



10
11
12
13
# File 'lib/active_operation/matcher/execution.rb', line 10

def when_initialized_with(*input)
  @input = input
  self
end