Sha256: 94976b4bb576d8e0c392ac8cc86d340b20b7dd33b7344d3ccc191884bcbdda0c

Contents?: true

Size: 578 Bytes

Versions: 3

Compression:

Stored size: 578 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.be.kind_of(Enumerable)

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

    connection.close
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
data_objects-0.10.3 spec/reader_spec.rb
data_objects-0.10.2 spec/reader_spec.rb
data_objects-0.10.1 spec/reader_spec.rb