spec/sftp_spec.rb in carrierwave-ftp-0.4.0 vs spec/sftp_spec.rb in carrierwave-ftp-0.4.1
- old
+ new
@@ -100,10 +100,9 @@
@sftp.should_receive(:download!).with(@stored.send(:full_path), kind_of(Tempfile))
@stored.read.should == ''
end
it "returns the content_type of the file" do
- @stored.should_receive(:file).and_return(Struct.new(:content_type).new('some/type'))
- @stored.content_type.should == 'some/type'
+ @stored.content_type.should == 'image/jpeg'
end
end
end