Sha256: 30ac86ee84de3f1aa0461731acfcfcaaf6d32c7e0d2e3e950be5dd0ebf1653cd

Contents?: true

Size: 500 Bytes

Versions: 9

Compression:

Stored size: 500 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))

describe DataObjects::Reader do

  it "should define a standard API" do
    connection = DataObjects::Connection.new('mock://localhost')

    command = connection.create_command("SELECT * FROM example")

    reader = command.execute_reader

    reader.should respond_to(:close)
    reader.should respond_to(:next!)
    reader.should respond_to(:values)
    reader.should respond_to(:fields)

    connection.close
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
data_objects-0.10.0 spec/reader_spec.rb
data_objects-0.9.11 spec/reader_spec.rb
data_objects-0.9.10 spec/reader_spec.rb
data_objects-0.9.10.1 spec/reader_spec.rb
data_objects-0.9.9 spec/reader_spec.rb
data_objects-0.9.8 spec/reader_spec.rb
data_objects-0.9.6 spec/reader_spec.rb
data_objects-0.9.12 spec/reader_spec.rb
data_objects-0.9.7 spec/reader_spec.rb