diff --git a/test/views/attachment_view.js b/test/views/attachment_view.js new file mode 100644 index 0000000000..70325b471b --- /dev/null +++ b/test/views/attachment_view.js @@ -0,0 +1,11 @@ +describe('AttachmentView', function() { + + it('should display an error for an unsupported type', function() { + var attachment = { + contentType: 'html/text'; + } + var view = new Whisper.AttachmentView({model: attachment}).render(); + assert.match(view.$el.text(), /Sorry, your attachment has a type, html, that is not currently supported./); + }); + +});