lib/gametel/navigation.rb in gametel-0.5.5 vs lib/gametel/navigation.rb in gametel-0.5.6
- old
+ new
@@ -11,9 +11,10 @@
#
# create a new screen given a class name
#
def on(cls, &block)
@current_screen = @current_page = cls.new
+ wait_until { @current_screen.active? } if @current_screen.respond_to?(:active?)
block.call @current_screen if block
@current_screen
end
end