class MockIntObject
Attributes
calls[R]
Public Class Methods
new(val)
click to toggle source
# File lib/mspec/mocks/proxy.rb, line 28 def initialize(val) @value = val @calls = 0 key = [self, :to_int] Mock.objects[key] = self Mock.mocks[key] << self end
Public Instance Methods
count()
click to toggle source
# File lib/mspec/mocks/proxy.rb, line 45 def count [:at_least, 1] end
to_int()
click to toggle source
# File lib/mspec/mocks/proxy.rb, line 40 def to_int @calls += 1 @value end