spec/cg_point_spec.rb in geomotion-0.14.0 vs spec/cg_point_spec.rb in geomotion-0.15.0
- old
+ new
@@ -152,13 +152,21 @@
point = CGPointMake(20, 10)
@point.should != point
end
end
+ describe '#to_ns_value' do
+ it 'should convert to NSValue' do
+ val = CGPoint.new(0, 0).to_ns_value
+ val.should.be.kind_of(NSValue)
+ end
+ end
+
describe "#to_ary" do
it "should allow parallel assigment" do
x, y = @point
x.should == 10.0
y.should == 20.0
end
end
+
end