Test that no records are new after synchronize, not all.
Also fix the spelling of :synchronize_keys.
This commit is contained in:
parent
082a95df0e
commit
58cac8bfb0
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue