Sha256: e1bdd783b7b3d0b65b963a4266ba26137bbe903df795fb771ffa3daa20d0fed5
Contents?: true
Size: 586 Bytes
Versions: 3
Compression:
Stored size: 586 Bytes
Contents
shared 'supporting Range' do setup_test_environment before do @connection = DataObjects::Connection.new(CONFIG.uri) end after do @connection.close end describe 'passing a Range as a parameter in execute_reader' do before do @reader = @connection.create_command("SELECT * FROM widgets WHERE id between ?").execute_reader(2..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
3 entries across 3 versions & 1 rubygems