spec/unit/postmark/message_extensions/mail_spec.rb in postmark-1.1.2 vs spec/unit/postmark/message_extensions/mail_spec.rb in postmark-1.2.0
- old
+ new
@@ -73,10 +73,10 @@
mail_message.postmark_attachments = attached_hash
end
end
describe "#postmark_attachments" do
- let(:attached_file) { mock("file") }
+ let(:attached_file) { double("file") }
let(:attached_hash) { {'Name' => 'picture.jpeg',
'ContentType' => 'image/jpeg'} }
let(:exported_file) { {'Name' => 'file.jpeg',
'ContentType' => 'application/octet-stream',
'Content' => ''} }