mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
make new simpledb tests pass a bit more consistently
This commit is contained in:
parent
9dd4e9877c
commit
fa29473bbb
2 changed files with 8 additions and 4 deletions
|
@ -22,8 +22,10 @@ describe 'SimpleDB.get_attributes' do
|
|||
it 'should return multi-value attributes from get_attributes' do
|
||||
AWS[:sdb].put_attributes(@domain_name, 'buzz', { "attr" => "foo" })
|
||||
AWS[:sdb].put_attributes(@domain_name, 'buzz', { "attr" => "foo2" })
|
||||
actual = AWS[:sdb].get_attributes(@domain_name, 'buzz')
|
||||
actual.body["Attributes"]["attr"].should == ['foo', 'foo2']
|
||||
eventually do
|
||||
actual = AWS[:sdb].get_attributes(@domain_name, 'buzz')
|
||||
actual.body["Attributes"]["attr"].should == ['foo', 'foo2']
|
||||
end
|
||||
end
|
||||
|
||||
it 'should have attributes for foo after put_attributes' do
|
||||
|
|
|
@ -16,8 +16,10 @@ describe 'SimpleDB.select' 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" })
|
||||
actual = AWS[:sdb].select("select * from #{@domain_name}")
|
||||
actual.body['Items'][@item]["attr"].should == ['foo','foo2']
|
||||
eventually do
|
||||
actual = AWS[:sdb].select("select * from #{@domain_name}")
|
||||
actual.body['Items'][@item]["attr"].should == ['foo','foo2']
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue