spec/uialertview_spec.rb in sugarcube-1.4.1 vs spec/uialertview_spec.rb in sugarcube-1.4.2

- old
+ new

@@ -177,10 +177,11 @@ @text = text } proper_wait 0.6 alert.textFieldAtIndex(0).text = 'test text' alert.dismissWithClickedButtonIndex(alert.firstOtherButtonIndex, animated: false) + proper_wait 0.1 @called.should == true @text.should == 'test text' end @@ -189,10 +190,11 @@ @text = text } proper_wait 0.6 alert.textFieldAtIndex(0).text = 'test text' alert.dismissWithClickedButtonIndex(alert.cancelButtonIndex, animated: false) + proper_wait 0.1 @text.should == 'test text' end it 'should work with :login_and_password_input' do @@ -201,10 +203,11 @@ } proper_wait 0.6 alert.textFieldAtIndex(0).text = 'test text 1' alert.textFieldAtIndex(1).text = 'test text 2' alert.dismissWithClickedButtonIndex(alert.cancelButtonIndex, animated: false) + proper_wait 0.1 @text.should == 'test text 1 + test text 2' end it 'should work with :login_and_password_input and pass the index' do @@ -214,9 +217,10 @@ } proper_wait 0.6 alert.textFieldAtIndex(0).text = 'test text 1' alert.textFieldAtIndex(1).text = 'test text 2' alert.dismissWithClickedButtonIndex(alert.cancelButtonIndex, animated: false) + proper_wait 0.1 @text.should == 'test text 1 + test text 2' @touched_index.should == alert.cancelButtonIndex end