Module: Surrogate::RSpec::MatchNumTimes
- Defined in:
- lib/surrogate/rspec/api_method_matchers.rb
Instance Attribute Summary collapse
-
#expected_times_invoked ⇒ Object
Returns the value of attribute expected_times_invoked.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#expected_times_invoked ⇒ Object
Returns the value of attribute expected_times_invoked.
139 140 141 |
# File 'lib/surrogate/rspec/api_method_matchers.rb', line 139 def expected_times_invoked @expected_times_invoked end |
Class Method Details
.extended(klass) ⇒ Object
135 136 137 |
# File 'lib/surrogate/rspec/api_method_matchers.rb', line 135 def self.extended(klass) klass. = :times end |
Instance Method Details
#match? ⇒ Boolean
141 142 143 |
# File 'lib/surrogate/rspec/api_method_matchers.rb', line 141 def match? expected_times_invoked == times_invoked end |