Permalink
Browse files

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

Also fix the spelling of :synchronize_keys.
  • Loading branch information...
1 parent 082a95d commit 58cac8bfb0beb4283c392264d47dc601dde5da68 @dougo dougo committed with Sep 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/import_test.rb
View
@@ -134,8 +134,8 @@
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

0 comments on commit 58cac8b

Please sign in to comment.