Skip to content

Commit

Permalink
fix UIAlertView test behavior
Browse files Browse the repository at this point in the history
you can't just do a removeFromSuperview, it adds a whole `UIWindow` hierarchy and breaks future functional tests.
  • Loading branch information
clayallsopp committed Jul 22, 2012
1 parent 6dd6d56 commit e733add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/motion/core/app_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit e733add

Please sign in to comment.