spec/unit/assocations_spec.rb in couchrest_model-2.0.4 vs spec/unit/assocations_spec.rb in couchrest_model-2.1.0.beta1
- old
+ new
@@ -23,10 +23,10 @@
o[:foreign_key].should eql('somecat_id')
o[:proxy].should eql('some_cats')
end
it "should generate a proxy string if proxied" do
- SaleInvoice.stub!(:proxy_owner_method).twice.and_return('company')
+ SaleInvoice.stub(:proxy_owner_method).twice.and_return('company')
o = SaleInvoice.merge_assoc_opts(:cat)
o[:proxy].should eql('self.company.cats')
end
end