features-skeleton/support/launch.rb in calabash-cucumber-0.9.51 vs features-skeleton/support/launch.rb in calabash-cucumber-0.9.53
- old
+ new
@@ -53,16 +53,22 @@
Calabash::Cucumber::SimulatorHelper.relaunch(path,sdk,ENV['DEVICE'] || 'iphone')
end
end
-
def app_path
ENV['APP_BUNDLE_PATH'] || (defined?(APP_BUNDLE_PATH) && APP_BUNDLE_PATH)
end
+def calabash_notify
+ if self.respond_to?:on_launch
+ self.on_launch
+ end
+end
+
Before do |scenario|
relaunch
+ calabash_notify
end
at_exit do
if ENV['NO_LAUNCH']!="1" and ENV['NO_STOP']!="1"
Calabash::Cucumber::SimulatorHelper.stop