Class: RSpec::Bash::Mocks::Matchers::Test
- Inherits:
-
BaseMatcher
- Object
- BaseMatcher
- RSpec::Bash::Mocks::Matchers::Test
- Defined in:
- lib/rspec/bash/mocks/matchers/test.rb
Instance Attribute Summary
Attributes inherited from BaseMatcher
Instance Method Summary collapse
-
#initialize(expr) ⇒ Test
constructor
A new instance of Test.
Methods inherited from BaseMatcher
#and_call_original, #and_return, #and_yield, #at_least, #at_most, #exactly, #matches?, #name, #never, #once, #setup_allowance, #thrice, #times, #twice, #with_args
Constructor Details
#initialize(expr) ⇒ Test
Returns a new instance of Test.
10 11 12 13 14 15 |
# File 'lib/rspec/bash/mocks/matchers/test.rb', line 10 def initialize(expr) @double = Doubles::ConditionalDouble.new(expr) @display_name = "test(#{expr})" super() end |