spec/uiimage_spec.rb in sugarcube-1.5.2 vs spec/uiimage_spec.rb in sugarcube-1.5.3
- old
+ new
@@ -8,9 +8,19 @@
it 'should have the right size' do
CGSizeEqualToSize(UIImage.canvas(size: [10, 10]).size, [10, 10]).should == true
end
+ it 'should return width' do
+ image = UIImage.canvas(size: [10, 10])
+ image.width.should == 10
+ end
+
+ it 'should return height' do
+ image = UIImage.canvas(size: [10, 10])
+ image.height.should == 10
+ end
+
it 'should have the right scale' do
UIImage.canvas(size: [10, 10], scale: 2).scale.should == 2
end
describe 'should have the right opacity' do