                     }
 
                     extensionItem.attachments = [
-                        NSItemProvider(item: NSURL(string: "https://ello.co"), typeIdentifier: String(kUTTypeURL)),
-                        NSItemProvider(item: "hello", typeIdentifier: String(kUTTypeText)),
-                        NSItemProvider(item: fileURL, typeIdentifier: String(kUTTypeImage))
+                        FakeItemProvider(item: NSURL(string: "https://ello.co"), typeIdentifier: String(kUTTypeURL)),
+                        FakeItemProvider(item: "hello", typeIdentifier: String(kUTTypeText)),
+                        FakeItemProvider(item: fileURL, typeIdentifier: String(kUTTypeImage))
                     ]
 
                     let urlPreview = ExtensionItemPreview(text: "https://ello.co")
                     let textPreview = ExtensionItemPreview(text: "hello")
 
-                    waitUntil(timeout: 30) { done in
-                        ShareAttachmentProcessor.preview(extensionItem) { previews in
-                            itemPreviews = previews
-                            expect(itemPreviews.count) == 3
-                            expect(itemPreviews[0] == urlPreview).to(beTrue())
-                            expect(itemPreviews[1] == textPreview).to(beTrue())
-                            expect(itemPreviews[2].image).notTo(beNil())
-                            done()
-                        }
+                    ShareAttachmentProcessor.preview(extensionItem) { previews in
+                        itemPreviews = previews
+                        expect(itemPreviews.count) == 3
+                        expect(itemPreviews[0] == urlPreview).to(beTrue())
+                        expect(itemPreviews[1] == textPreview).to(beTrue())
+                        expect(itemPreviews[2].image).notTo(beNil())
                     }
                 }
 

import Nimble

class ShareAttachmentProcessorSpec: QuickSpec {
    override func spec() {

        describe("ShareAttachmentProcessor") {

                    let extensionItem = NSExtensionItem()

                    extensionItem.attachments = [
                        FakeItemProvider(item: NSURL(string: "https://ello.co"), typeIdentifier: String(kUTTypeURL)),
                        FakeItemProvider(item: "https://ello.co", typeIdentifier: String(kUTTypeText))
                    ]

                    it("returns true if content text is present and extension item is nil") {
