Class: Mocha::Mock
Instance Method Summary collapse
Instance Method Details
#expects(*args) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/mocha/shot/mock.rb', line 3 def expects(*args) if args.empty? || args.first.is_a?(Array) return TerseMock.new(self, args.first) else return __expects__(*args) end end |
#stubs(*args) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/mocha/shot/mock.rb', line 11 def stubs(*args) if args.empty? || args.first.is_a?(Array) return TerseStub.new(self, args.first) else return __stubs__(*args) end end |