From 58cac8bfb0beb4283c392264d47dc601dde5da68 Mon Sep 17 00:00:00 2001 From: Doug Orleans Date: Mon, 3 Sep 2012 02:15:56 -0400 Subject: [PATCH] Test that no records are new after synchronize, not all. Also fix the spelling of :synchronize_keys. --- test/import_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/import_test.rb b/test/import_test.rb index efc1ee9..d9440bf 100644 --- a/test/import_test.rb +++ b/test/import_test.rb @@ -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