From e733add5e98e8661d2b308815874b182e3b1e0ad Mon Sep 17 00:00:00 2001 From: Clay Allsopp Date: Sun, 22 Jul 2012 13:54:39 -0700 Subject: [PATCH] fix UIAlertView test behavior you can't just do a removeFromSuperview, it adds a whole `UIWindow` hierarchy and breaks future functional tests. --- spec/motion/core/app_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/motion/core/app_spec.rb b/spec/motion/core/app_spec.rb index 78ea06d3..896f8541 100644 --- a/spec/motion/core/app_spec.rb +++ b/spec/motion/core/app_spec.rb @@ -25,7 +25,7 @@ describe '.alert' do after do - @alert.removeFromSuperview + @alert.dismissWithClickedButtonIndex(@alert.cancelButtonIndex, animated: false) end describe "with only one string argument" do