Class: CallCenter::Test::MiniTest::DSL::ItShouldFlow::Stubs

Inherits:
Expects show all
Defined in:
lib/call_center/test/minitest/dsl.rb

Instance Attribute Summary

Attributes inherited from Expectation

#name

Instance Method Summary collapse

Methods inherited from Expects

#initialize

Methods inherited from Expectation

#initialize

Constructor Details

This class inherits a constructor from CallCenter::Test::MiniTest::DSL::ItShouldFlow::Expects

Instance Method Details

#setup(object) ⇒ Object


63
64
65
66
# File 'lib/call_center/test/minitest/dsl.rb', line 63

def setup(object)
  mocka = object.stubs(name)
  @expectation_block.call(mocka) if @expectation_block
end