module AncientMock::TestExtensions
Public Instance Methods
allow(obj)
click to toggle source
# File lib/ancient_mock.rb, line 110 def allow(obj) StubTarget.new(obj) end
expect(obj)
click to toggle source
# File lib/ancient_mock.rb, line 114 def expect(obj) ExpectationTarget.new(obj) end
receive(message)
click to toggle source
# File lib/ancient_mock.rb, line 118 def receive(message) ExpectationDefinition.new(message) end