     let password = "PostTestPassword"
     let tapglue = RxTapglue(configuration: Configuration())
     var user = User()
+
+    let attachment = Attachment(contents: ["en":"contents"], name: "userPost", type: .Text)
+    var post: Post!
     
     override func setUp() {
         super.setUp()

    }
    
    func testCreatePost() {
        let attachment = Attachment(contents: ["en":"contents"], name: "userPost", type: .Text)
        let post = Post(visibility: .Connections, attachments: [attachment])
        
        var networkPost: Post?
        _ = tapglue.createPost(post).subscribeNext { post in
            networkPost = post


        expect(wasDeleted).toEventually(beTrue())
    }

    func testRetrievePost() throws {
        let createdPost = try tapglue.createPost(post).toBlocking().first()!
        let retrievedPost = try tapglue.retrievePost(createdPost.id!).toBlocking().first()!
        expect(createdPost.id!).to(equal(retrievedPost.id!))
    }

    func testUpdatePost() throws {
        let createdPost = try tapglue.createPost(post).toBlocking().first()!
        createdPost.attachments!.append(Attachment(contents: ["es":"contenidos"], name: "spanish", type: .Text))
        let updatedPost = try tapglue.updatePost(createdPost).toBlocking().first()
        
        expect(updatedPost?.attachments?.count).to(equal(2))
    }
}
