             var widthRatio : CGFloat!
             var heightRatio : CGFloat!
             let imagePoint = CGPointZero
+            var viewPoint : CGPoint!
 
             beforeEach {
                 let square = CGSize(width: 100, height: 100)

                    }
                    it("should scale image to minimize") {
                        let scale = min(widthRatio, heightRatio)
                        var viewPoint = imagePoint
                        viewPoint.x *= scale
                        viewPoint.y *= scale


                    }

                    it("should scale image to the view size") {
                        viewPoint.x *= widthRatio
                        viewPoint.y *= heightRatio

