From 7635cb53e8a69d3161d371fea7727dc3bc206c7b Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Tue, 3 Feb 2015 19:02:18 +0100 Subject: [PATCH] turns out Bacon.run is called for each spec, let's make sure we don't override the main_activity ivar with nil --- lib/motion/spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/motion/spec.rb b/lib/motion/spec.rb index e230f247..6aba2ec5 100644 --- a/lib/motion/spec.rb +++ b/lib/motion/spec.rb @@ -511,7 +511,7 @@ module Bacon if defined?(NSObject) current_context.performSelector("run", withObject:nil, afterDelay:0) else - @main_activity = arg + @main_activity ||= arg current_context.run end end