 
 		it "should not auto size the layer when changing text after explictly setting width", ->
 			text = new TextLayer
+				fontFamily: "Arial"
 			text.width = 123
 			text.text = longText
 			text.width.should.equal 123
 
 		it "should not auto size the layer when changing text after explictly setting height", ->
 			text = new TextLayer
+				fontFamily: "Arial"
 			text.height = 456
 			text.text = longText
 			text.height.should.equal 456


		it "should not auto size the layer the size the layer if it is explictly set", ->
			text = new TextLayer
				text: mediumText
				width: 123
				height: 456

		it "should auto size the layer based on it's parent", ->
			layer = new Layer width: 150
			text = new TextLayer
				fontFamily: "Arial"
				text: mediumText
				parent: layer
			text.width.should.equal 150
			text.height.should.equal 500

		it "should auto size the layer when its parent is set afterwards", ->
			layer = new Layer width: 150
			text = new TextLayer
				fontFamily: "Arial"
				text: mediumText
			text.parent = layer
			text.width.should.equal 150
			text.height.should.equal 500

		it "should adjust its size on when a new text is set", (done) ->
			text = new TextLayer
				fontFamily: "Arial"
			text.on "change:height", ->
				text.size.should.eql width: 400, height: 2600
				done()
			text.text = longText

