From 3b2cec9c64f1cb0c400999aa4775ecae708d6661 Mon Sep 17 00:00:00 2001 From: David Larrabee Date: Mon, 3 Nov 2014 18:50:19 -0500 Subject: [PATCH] Fixes spec crashing issue (#132) --- spec/actions.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spec/actions.rb b/spec/actions.rb index dd29f05..01c2c14 100644 --- a/spec/actions.rb +++ b/spec/actions.rb @@ -54,10 +54,7 @@ describe 'actions' do describe 'focus' do before do - window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) - @vc = UIViewController.alloc.initWithNibName(nil, bundle: nil) - window.rootViewController = @vc - window.makeKeyAndVisible + @vc = rmq.app.window.rootViewController @tf_0 = @vc.rmq.append(UITextField).style do |st| st.frame = {l: 10, t: 10, w: 100, h: 30}