spec/unit/attachment_spec.rb in couchrest_model-2.0.4 vs spec/unit/attachment_spec.rb in couchrest_model-2.1.0.beta1

- old
+ new

@@ -81,10 +81,10 @@ @obj.attachments['couchdb.png']['content_type'].should == "image/png" end it "should use name to detect the content-type automatically if no file" do file = File.open(FIXTURE_PATH + '/attachments/couchdb.png') - file.stub!(:path).and_return("badfilname") + file.stub(:path).and_return("badfilname") @obj.create_attachment(:file => File.open(FIXTURE_PATH + '/attachments/couchdb.png'), :name => "couchdb.png") @obj.attachments['couchdb.png']['content_type'].should == "image/png" end end