spec/dynamoid/finders_spec.rb in dynamoid-0.3.2 vs spec/dynamoid/finders_spec.rb in dynamoid-0.4.0

- old
+ new

@@ -25,10 +25,15 @@ it 'finds multiple ids' do @address2 = Address.create(:city => 'Illinois') Address.find(@address.id, @address2.id).should include @address, @address2 - end + end + + it 'sends consistent option to the adapter' do + Dynamoid::Adapter.expects(:get_item).with { |table_name, key, options| options[:consistent_read] == true } + Address.find('x', :consistent_read => true) + end context 'with users' do before do User.create_indexes end