Module: AncientMock::TestExtensions

Included in:
MiniTest::Unit::TestCase
Defined in:
lib/ancient_mock.rb

Instance Method Summary collapse

Instance Method Details

#allow(obj) ⇒ Object



110
111
112
# File 'lib/ancient_mock.rb', line 110

def allow(obj)
  StubTarget.new(obj)
end

#expect(obj) ⇒ Object



114
115
116
# File 'lib/ancient_mock.rb', line 114

def expect(obj)
  ExpectationTarget.new(obj)
end

#receive(message) ⇒ Object



118
119
120
# File 'lib/ancient_mock.rb', line 118

def receive(message)
  ExpectationDefinition.new(message)
end