Sha256: 00c794281ffe247ddd91513c7d0e93f4602677589430fff13a3a0ae5815ce74e

Contents?: true

Size: 625 Bytes

Versions: 16

Compression:

Stored size: 625 Bytes

Contents

shared_examples_for 'supporting Array' do

  before :all do
    setup_test_environment
  end

  before do
    @connection = DataObjects::Connection.new(CONFIG.uri)
  end

  after do
    @connection.close
  end

  describe 'passing an Array as a parameter in execute_reader' do

    before do
      @reader = @connection.create_command("SELECT * FROM widgets WHERE id in ?").execute_reader([2,3,4,5])
    end

    after do
      @reader.close
    end

    it 'should return correct number of rows' do
      counter  = 0
      while(@reader.next!) do
        counter += 1
      end
      counter.should == 4
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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