From db7e4dff8d6472a69db187d59886ff3a7a150b33 Mon Sep 17 00:00:00 2001 From: Pete Hodgson Date: Tue, 17 May 2011 23:45:29 -0700 Subject: [PATCH] Modify app launch steps to allow testing on physical device --- .../CountItOut/features/step_definitions/launch_steps.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/example/CountItOut/features/step_definitions/launch_steps.rb b/example/CountItOut/features/step_definitions/launch_steps.rb index 56cdd26f..78580336 100644 --- a/example/CountItOut/features/step_definitions/launch_steps.rb +++ b/example/CountItOut/features/step_definitions/launch_steps.rb @@ -1,6 +1,10 @@ -Given /^I the app is launched$/ do +def running_on_device + Frank::USING_PHYSICAL_DEVICE +end + +Given /^the app is launched$/ do # when running tests on the device we don't want to do anything, we just expect the app to be up and running - return if running_on_device + next if running_on_device require 'sim_launcher'