Fix build failure related to addition of default scope on Contact

This commit is contained in:
Sarah Mei 2011-02-19 21:44:37 -08:00
parent edf15aa5bd
commit 51df11aafc

View file

@ -255,9 +255,9 @@ describe DataConversion::ImportToMysql do
end
it "imports data into the mongo_contacts table" do
lambda {
@migrator.process_raw_contacts
}.should change(Contact, :count).by(Mongo::Contact.count)
original_contact_count = Contact.unscoped.count
@migrator.process_raw_contacts
Contact.unscoped.count.should == original_contact_count + Mongo::Contact.count
end
it "imports all the columns" do