spec/ios/factories_spec.rb in sugarcube-2.4.1 vs spec/ios/factories_spec.rb in sugarcube-2.4.2
- old
+ new
@@ -59,18 +59,20 @@
error.should.be.kind_of UIBarButtonItem
end
end
end
- describe UIBlurEffect do
- [
- 'with #dark', -> { UIBlurEffect.dark },
- 'with #light', -> { UIBlurEffect.light },
- 'with #extra_light', -> { UIBlurEffect.extra_light },
- ].each_slice(2) do |description, factory|
- it "should work #{description}" do
- error = factory.call
- error.should.be.kind_of UIBlurEffect
+ if defined?(UIBlurEffectStyleDark)
+ describe UIBlurEffect do
+ [
+ 'with #dark', -> { UIBlurEffect.dark },
+ 'with #light', -> { UIBlurEffect.light },
+ 'with #extra_light', -> { UIBlurEffect.extra_light },
+ ].each_slice(2) do |description, factory|
+ it "should work #{description}" do
+ error = factory.call
+ error.should.be.kind_of UIBlurEffect
+ end
end
end
end
describe UIButton do