spec/ios/symbol_constants_spec.rb in sugarcube-2.2.0 vs spec/ios/symbol_constants_spec.rb in sugarcube-2.3.0

- old
+ new

@@ -409,10 +409,21 @@ :default.uiactionstyle.should == UIActionSheetStyleDefault :black_translucent.uiactionstyle.should == UIActionSheetStyleBlackTranslucent :black_opaque.uiactionstyle.should == UIActionSheetStyleBlackOpaque end + it 'should support `uialertcontrollerstyle`' do + :alert.uialertcontrollerstyle.should == UIAlertControllerStyleAlert + :action_sheet.uialertcontrollerstyle.should == UIAlertControllerStyleActionSheet + end + + it 'should support `uialertactionstyle`' do + :default.uialertactionstyle.should == UIAlertActionStyleDefault + :cancel.uialertactionstyle.should == UIAlertActionStyleCancel + :destructive.uialertactionstyle.should == UIAlertActionStyleDestructive + end + it 'should support `uiimagesource`' do :camera.uiimagesource.should == UIImagePickerControllerSourceTypeCamera :library.uiimagesource.should == UIImagePickerControllerSourceTypePhotoLibrary :album.uiimagesource.should == UIImagePickerControllerSourceTypeSavedPhotosAlbum end @@ -849,9 +860,17 @@ should.raise(SugarCubeNotFoundException) { :definitely_doesnt_exist_i_am_really_sure_of_it.uialertstyle } end it 'should not find nonexistant `uiactionstyle`' do should.raise(SugarCubeNotFoundException) { :definitely_doesnt_exist_i_am_really_sure_of_it.uiactionstyle } + end + + it 'should not find nonexistant `uialertcontrollerstyle`' do + should.raise(SugarCubeNotFoundException) { :definitely_doesnt_exist_i_am_really_sure_of_it.uialertcontrollerstyle } + end + + it 'should not find nonexistant `uialertactionstyle`' do + should.raise(SugarCubeNotFoundException) { :definitely_doesnt_exist_i_am_really_sure_of_it.uialertactionstyle } end it 'should not find nonexistant `uiimagesource`' do should.raise(SugarCubeNotFoundException) { :definitely_doesnt_exist_i_am_really_sure_of_it.uiimagesource } end