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

Also fix the spelling of :synchronize_keys.
master
Doug Orleans 2012-09-03 02:15:56 -04:00 committed by Zach Dennis
parent 082a95df0e
commit 58cac8bfb0
1 changed files with 2 additions and 2 deletions

View File

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