Sha256: a4a87780ee97b5841f5899ca95d417c2bc5b014f6f8d74673630ff3440d0bf25
Contents?: true
Size: 697 Bytes
Versions: 2
Compression:
Stored size: 697 Bytes
Contents
share_examples_for 'supporting Array' do include DataObjectsSpecHelpers before :all do setup_test_environment end before :each do @connection = DataObjects::Connection.new(CONFIG.uri) end after :each 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
data_objects-0.10.0 | lib/data_objects/spec/typecast/array_spec.rb |
data_objects-0.9.12 | lib/data_objects/spec/typecast/array_spec.rb |