spec/ios/uiimage_spec.rb in sugarcube-2.0.1 vs spec/ios/uiimage_spec.rb in sugarcube-2.0.2
- old
+ new
@@ -1,11 +1,11 @@
describe 'UIImage' do
describe 'UIImage.canvas' do
it 'should create an image' do
- UIImage.canvas(size: [10, 10]).should.is_a UIImage
+ UIImage.canvas(size: [10, 10]).should.be.kind_of UIImage
end
it 'should have the right size' do
CGSizeEqualToSize(UIImage.canvas(size: [10, 10]).size, [10, 10]).should == true
end
@@ -484,10 +484,10 @@
red = UIImage.canvas(size: [10, 10]) do |context|
:red.uicolor.set
CGContextAddRect(context, [[0, 0], [10, 10]])
CGContextFillPath(context)
end
- red.overlay(:white).should.is_a?(UIImage)
+ red.overlay(:white).should.be.kind_of UIImage
end
it 'should return an image that is the same size' do
red = UIImage.canvas(size: [10, 10]) do |context|
:red.uicolor.set