Sha256: 8f03ac1656b125ef73b6248142bd456a36b6b1ae1da62815eca78ee2350cd464
Contents?: true
Size: 513 Bytes
Versions: 3
Compression:
Stored size: 513 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 # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
data_objects-0.10.3 | spec/result_spec.rb |
data_objects-0.10.2 | spec/result_spec.rb |
data_objects-0.10.1 | spec/result_spec.rb |