Test that no records are new after synchronize, not all.

Also fix the spelling of :synchronize_keys.
This commit is contained in:
Doug Orleans 2012-09-03 02:15:56 -04:00 committed by Zach Dennis
parent 082a95df0e
commit 58cac8bfb0

View file

@ -134,8 +134,8 @@ describe "#import" do
let(:new_topics) { Build(3, :topics) } let(:new_topics) { Build(3, :topics) }
it "reloads data for existing in-memory instances" do it "reloads data for existing in-memory instances" do
Topic.import(new_topics, :synchronize => new_topics, :synchronize_key => [:title] ) Topic.import(new_topics, :synchronize => new_topics, :synchronize_keys => [:title] )
assert new_topics.all?(&:new_record?), "Records should have been reloaded" assert !new_topics.any?(&:new_record?), "Records should have been reloaded"
end end
end end
end end