Class: RSpec::Bash::Mocks::Matchers::Test

Inherits:
BaseMatcher
  • Object
show all
Defined in:
lib/rspec/bash/mocks/matchers/test.rb

Instance Attribute Summary

Attributes inherited from BaseMatcher

#double

Instance Method Summary collapse

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