       describe("#metaInstance") {
         it("resolves meta data created from object") {
           var data = ["id": 11, "name": "Name"]
-          item = item(meta: Meta(data))
+          item = Item(meta: Meta(data))
           let result: Meta = item.metaInstance()
 
           expect(result.id).to(equal(data["id"]))


      describe("#equality") {
        it("compares two view models that are equal using identifier") {
          let left = item(identifier: "foo".hashValue)
          let right = item(identifier: "foo".hashValue)

          expect(left === right).to(beTrue())
        }

        it("compares two view models that are not equal using identifier") {
          let left = item(identifier: "foo".hashValue)
          let right = item(identifier: "bar".hashValue)

          expect(left === right).to(beFalse())
        }

        it("compares two view models that are equal") {
          let left = item(title: "foo", size: CGSize(width: 40, height: 40))
          let right = item(title: "foo", size: CGSize(width: 40, height: 40))

          expect(left === right).to(beTrue())
        }

        it("compares two unequal view model") {
          let left = item(title: "foo", size: CGSize(width: 40, height: 40))
          let right = item(title: "foo", size: CGSize(width: 60, height: 60))

          expect(left === right).to(beFalse())
        }

        it("compares a collection of view models that are equal") {
          let left = [
            item(title: "foo", size: CGSize(width: 40, height: 40)),
            item(title: "foo", size: CGSize(width: 40, height: 40))
          ]
          let right = [
            item(title: "foo", size: CGSize(width: 40, height: 40)),
            item(title: "foo", size: CGSize(width: 40, height: 40))
          ]

          expect(left === right).to(beTrue())

      describe("#dictionary") {
        beforeEach {
          data["relations"] = ["Items" : [data, data]]
          item = Item(data)
        }

        it("returns a dictionary representation of the view model") {
          let newItem = Item(item.dictionary)

          expect(newItem == item).to(beTrue())
          expect(newItem.relations["Items"]!.count).to(equal(item.relations["Items"]!.count))
