rubymotion-community / BubbleWrap

Cocoa wrappers and helpers for RubyMotion (Ruby for iOS and OS X) - Making Cocoa APIs more Ruby like, one API at a time. Fork away and send your pull requests
Other
1.18k stars 208 forks source link

UIActionSheet Spec Weirdness #425

Closed markrickert closed 9 years ago

markrickert commented 9 years ago

I think Travis is running iOS8 now and they've changed the way UIActionSheets appear in the UIWindow count.

Bacon::Error: #<UIWindow:0x117d84c0>.==(#<_UIAlertControllerShimPresenterWindow:0x1297db30>) failed
    spec.rb:700:in `satisfy:': .window - returns UIApplication.sharedApplication.keyWindow
    spec.rb:714:in `method_missing:'
    spec.rb:316:in `block in run_spec_block'
    spec.rb:440:in `execute_block'
    spec.rb:316:in `run_spec_block'
    spec.rb:331:in `run'
Bacon::Error: 2.>(2) failed
    spec.rb:700:in `satisfy:': with UIActionSheet - returns the correct window
    spec.rb:714:in `method_missing:'
    spec.rb:440:in `execute_block'
    spec.rb:404:in `run_postponed_block:'
Bacon::Error: false.==(true) failed
    spec.rb:700:in `satisfy:': .get - should return true when available
    spec.rb:714:in `method_missing:'
    spec.rb:316:in `block in run_spec_block'
    spec.rb:440:in `execute_block'
    spec.rb:316:in `run_spec_block'
    spec.rb:331:in `run'