Class: RSpec::Bash::Mocks::Matchers::TestFor
- Inherits:
-
BaseMatcher
- Object
- BaseMatcher
- RSpec::Bash::Mocks::Matchers::TestFor
- Defined in:
- lib/rspec/bash/mocks/matchers/test_for.rb
Instance Attribute Summary
Attributes inherited from BaseMatcher
Instance Method Summary collapse
-
#initialize(fullexpr) ⇒ TestFor
constructor
A new instance of TestFor.
- #with_args(args) ⇒ Object
Methods inherited from BaseMatcher
#and_always_return, #and_always_yield, #and_call_original, #and_return, #and_yield, #at_least, #at_most, #exactly, #matches?, #name, #never, #once, #setup_allowance, #thrice, #times, #twice
Constructor Details
#initialize(fullexpr) ⇒ TestFor
Returns a new instance of TestFor.
10 11 12 13 14 15 |
# File 'lib/rspec/bash/mocks/matchers/test_for.rb', line 10 def initialize(fullexpr) @double = Doubles::ExactConditionalDouble.new(fullexpr) @display_name = "test_for" super() end |
Instance Method Details
#with_args(args) ⇒ Object
17 18 19 |
# File 'lib/rspec/bash/mocks/matchers/test_for.rb', line 17 def with_args(args) fail "#{to_s}: cannot be used with '.with_args', use 'test_by' instead" end |