spec/ios/factories_spec.rb in sugarcube-2.3.0 vs spec/ios/factories_spec.rb in sugarcube-2.4.0

- old
+ new

@@ -59,9 +59,22 @@ 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 + end + end + end + describe UIButton do [ 'with #custom', -> { UIButton.custom }, 'with #rounded', -> { UIButton.rounded }, 'with #rounded_rect', -> { UIButton.rounded_rect },