Sha256: 26878a43d0feebf84e0daa51a53d7132b28484a279a20169dbeb31fdc48be6bc

Contents?: true

Size: 614 Bytes

Versions: 16

Compression:

Stored size: 614 Bytes

Contents

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

describe DataObjects::Reader do
  subject { command.execute_reader }

  let(:connection)  { DataObjects::Connection.new('mock://localhost')     }
  let(:command)     { connection.create_command('SELECT * FROM example')  }

  after { connection.close }

  context 'should define a standard API' do

    it { should be_a(Enumerable)    }

    it { should respond_to(:close)  }
    it { should respond_to(:next!)  }
    it { should respond_to(:values) }
    it { should respond_to(:fields) }
    it { should respond_to(:each)   }
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
data_objects-0.10.17 spec/reader_spec.rb
data_objects-0.10.16 spec/reader_spec.rb
data_objects-0.10.15 spec/reader_spec.rb
data_objects-0.10.14 spec/reader_spec.rb
data_objects-0.10.13 spec/reader_spec.rb
data_objects-0.10.12 spec/reader_spec.rb
data_objects-0.10.11 spec/reader_spec.rb
data_objects-0.10.10 spec/reader_spec.rb
data_objects-0.10.9 spec/reader_spec.rb
data_objects-0.10.8 spec/reader_spec.rb
data_objects-0.10.7 spec/reader_spec.rb
data_objects-0.10.6 spec/reader_spec.rb
data_objects-0.10.5 spec/reader_spec.rb
data_objects-0.10.4 spec/reader_spec.rb
data_objects-0.10.4.rc2 spec/reader_spec.rb
data_objects-0.10.4.rc1 spec/reader_spec.rb