Class: Driver
- Inherits:
-
Mocha::Mock
- Object
- Mocha::Mock
- Driver
- Defined in:
- test/mocks.rb
Instance Method Summary collapse
-
#initialize ⇒ Driver
constructor
A new instance of Driver.
Constructor Details
#initialize ⇒ Driver
Returns a new instance of Driver.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'test/mocks.rb', line 7 def initialize super stubs( :open ).returns([0, 'cookie']) stubs( :close ).returns(0) stubs( :complete? ).returns(0) stubs( :errmsg ).returns('') stubs( :errcode ).returns(0) stubs( :trace ).returns(nil) stubs( :set_authorizer ).returns(0) stubs( :prepare ).returns([0, 'stmt', 'remainder']) stubs( :finalize ).returns(0) stubs( :changes ).returns(14) stubs( :total_changes ).returns(28) stubs( :interrupt ).returns(0) end |