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