spec/dynamoid/indexes/index_spec.rb in dynamoid-0.3.2 vs spec/dynamoid/indexes/index_spec.rb in dynamoid-0.4.0

- old
+ new

@@ -75,10 +75,10 @@ @index = Dynamoid::Indexes::Index.new(User, :name, :range_key => :last_logged_in_at) @user = User.create(:name => 'Josh', :last_logged_in_at => @time) @index.save(@user) - Dynamoid::Adapter.read("dynamoid_tests_index_user_last_logged_in_ats_and_names", 'Josh', @time.to_f)[:ids].should == Set[@user.id] + Dynamoid::Adapter.read("dynamoid_tests_index_user_last_logged_in_ats_and_names", 'Josh', :range_key => @time.to_f)[:ids].should == Set[@user.id] end it 'deletes an object from the index it is associated with' do @index = Dynamoid::Indexes::Index.new(User, :name) @user = User.create(:name => 'Josh', :password => 'test123', :last_logged_in_at => @time, :id => 'test123')