Sha256: bf1d23366334e761a2524824938790291e122dfef6039dc6037d76597e8de81a
Contents?: true
Size: 663 Bytes
Versions: 6
Compression:
Stored size: 663 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper')) describe DataObjects::Result do it "should define a standard API" do connection = DataObjects::Connection.new('mock://localhost') command = connection.create_command("SELECT * FROM example") result = command.execute_non_query # In case the driver needs to access the command or connection to load additional data. result.instance_variables.should include('@command') # Affected Rows: result.should respond_to(:to_i) result.to_i.should == 0 # The id of the inserted row. result.should respond_to(:insert_id) connection.close end end
Version data entries
6 entries across 6 versions & 1 rubygems