Class: ConvenientService::RSpec::Matchers::Classes::DelegateTo::Entities::SubMatchers::Base
- Inherits:
-
Object
- Object
- ConvenientService::RSpec::Matchers::Classes::DelegateTo::Entities::SubMatchers::Base
- Defined in:
- lib/convenient_service/rspec/matchers/classes/delegate_to/entities/sub_matchers/base.rb
Instance Attribute Summary collapse
-
#block_expectation_value ⇒ Object
readonly
Returns the value of attribute block_expectation_value.
-
#matcher ⇒ Object
readonly
Returns the value of attribute matcher.
Instance Method Summary collapse
- #apply_stubs! ⇒ void
- #does_not_match?(block_expectation_value) ⇒ Boolean
- #failure_message ⇒ String
- #failure_message_when_negated ⇒ String
-
#initialize(matcher:, block_expectation_value: nil) ⇒ Base
constructor
A new instance of Base.
- #matches?(block_expectation_value) ⇒ Boolean
Constructor Details
#initialize(matcher:) ⇒ void #initialize(matcher:, block_expectation_value:) ⇒ void
Returns a new instance of Base.
39 40 41 42 |
# File 'lib/convenient_service/rspec/matchers/classes/delegate_to/entities/sub_matchers/base.rb', line 39 def initialize(matcher:, block_expectation_value: nil) @matcher = matcher @block_expectation_value = block_expectation_value end |
Instance Attribute Details
#block_expectation_value ⇒ Object (readonly)
Returns the value of attribute block_expectation_value.
20 21 22 |
# File 'lib/convenient_service/rspec/matchers/classes/delegate_to/entities/sub_matchers/base.rb', line 20 def block_expectation_value @block_expectation_value end |
#matcher ⇒ Object (readonly)
Returns the value of attribute matcher.
26 27 28 |
# File 'lib/convenient_service/rspec/matchers/classes/delegate_to/entities/sub_matchers/base.rb', line 26 def matcher @matcher end |
Instance Method Details
#apply_stubs! ⇒ void
This method returns an undefined value.
47 48 |
# File 'lib/convenient_service/rspec/matchers/classes/delegate_to/entities/sub_matchers/base.rb', line 47 def apply_stubs! end |
#does_not_match?(block_expectation_value) ⇒ Boolean
64 65 66 |
# File 'lib/convenient_service/rspec/matchers/classes/delegate_to/entities/sub_matchers/base.rb', line 64 def does_not_match?(block_expectation_value) !matches?(block_expectation_value) end |
#failure_message ⇒ String
71 72 73 |
# File 'lib/convenient_service/rspec/matchers/classes/delegate_to/entities/sub_matchers/base.rb', line 71 def "" end |
#failure_message_when_negated ⇒ String
78 79 80 |
# File 'lib/convenient_service/rspec/matchers/classes/delegate_to/entities/sub_matchers/base.rb', line 78 def "" end |
#matches?(block_expectation_value) ⇒ Boolean
54 55 56 57 58 |
# File 'lib/convenient_service/rspec/matchers/classes/delegate_to/entities/sub_matchers/base.rb', line 54 def matches?(block_expectation_value) @block_expectation_value = block_expectation_value false end |