Sha256: 6aee98e525439158fc5736e784ead609eb99b9dde87a8a00d9b6a268ad094ccc

Contents?: true

Size: 758 Bytes

Versions: 25

Compression:

Stored size: 758 Bytes

Contents

require File.dirname(__FILE__) + '/../../../spec_helper'

describe 'SimpleDB.select' do
  describe 'success' do

    before(:each) do
      @domain_name = "fog_domain_#{Time.now.to_i}"
      AWS[:sdb].create_domain(@domain_name)
    end

    after(:each) do
      AWS[:sdb].delete_domain(@domain_name)
    end

    it 'should return multi-value attributes when present' do
      @item = "someitem_fog_domain_#{Time.now.to_i}"
      AWS[:sdb].put_attributes(@domain_name, @item, { "attr" => "foo" })
      AWS[:sdb].put_attributes(@domain_name, @item, { "attr" => "foo2" })
      eventually do
        actual = AWS[:sdb].select("select * from #{@domain_name}")
        actual.body['Items'][@item]["attr"].should == ['foo','foo2']
      end
    end

  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
fog-0.3.7 spec/aws/requests/simpledb/select_spec.rb
fog-0.3.6 spec/aws/requests/simpledb/select_spec.rb
fog-0.3.5 spec/aws/requests/simpledb/select_spec.rb
fog-0.3.4 spec/aws/requests/simpledb/select_spec.rb
fog-0.3.3 spec/aws/requests/simpledb/select_spec.rb
fog-0.3.2 spec/aws/requests/simpledb/select_spec.rb
fog-0.3.1 spec/aws/requests/simpledb/select_spec.rb
fog-0.3.0 spec/aws/requests/simpledb/select_spec.rb
fog-0.2.30 spec/aws/requests/simpledb/select_spec.rb
fog-0.2.28 spec/aws/requests/simpledb/select_spec.rb
fog-0.2.27 spec/aws/requests/simpledb/select_spec.rb
fog-0.2.26 spec/aws/requests/simpledb/select_spec.rb
fog-0.2.25 spec/aws/requests/simpledb/select_spec.rb
fog-0.2.24 spec/aws/requests/simpledb/select_spec.rb
tecnh-fog-0.2.23.vpc spec/aws/requests/simpledb/select_spec.rb
fog-0.2.23 spec/aws/requests/simpledb/select_spec.rb
fog-0.2.22 spec/aws/requests/simpledb/select_spec.rb
fog-0.2.21 spec/aws/requests/simpledb/select_spec.rb
fog-0.2.20 spec/aws/requests/simpledb/select_spec.rb
fog-0.2.19 spec/aws/requests/simpledb/select_spec.rb