spec/ios/image_scale_spec.rb in sugarcube-3.4.1 vs spec/ios/image_scale_spec.rb in sugarcube-3.4.2
- old
+ new
@@ -76,10 +76,10 @@
scaled.size.width.should == 10
scaled.size.height.should == 20
end
it 'should be able to change scale' do
- if UIScreen.mainScreen.scale == 2
+ if UIScreen.mainScreen.scale >= 2
scaled = @image.at_scale(1.0)
scaled.nsdata.writeToFile('at_scale.png'.document_path, atomically: true)
scaled.size.width.should == 20
scaled.size.height.should == 20