spec/ios/uialertcontroller_spec.rb in sugarcube-3.4.2 vs spec/ios/uialertcontroller_spec.rb in sugarcube-3.5.0
- old
+ new
@@ -126,7 +126,16 @@
alert.actions[2].style.should == UIAlertActionStyleDestructive
alert.actions[3].title.should == 'Other'
alert.actions[3].style.should == UIAlertActionStyleDefault
end
+ describe '.prompt' do
+ it 'should have text_field' do
+ alert = UIAlertController.prompt(controller, 'test')
+ wait 0.6 do
+ alert.textFields.count.should == 1
+ controller.dismissViewControllerAnimated(false, completion: nil)
+ end
+ end
+ end
end
end