Sha256: 034e0219d317317e0c72244d0e923c4fab29ce6fc5116804f3e3ba7a074bf32c
Contents?: true
Size: 513 Bytes
Versions: 2
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
data_objects-0.10.0 | spec/result_spec.rb |
data_objects-0.9.12 | spec/result_spec.rb |