Sha256: fb601e03de577a57c7d15bc6ffbb772b868fa742ab27cb2bfd5d9bfe5824a725

Contents?: true

Size: 585 Bytes

Versions: 19

Compression:

Stored size: 585 Bytes

Contents

require 'calabash-android/management/app_installation'

AfterConfiguration do |config|
	FeatureNameMemory.feature_name = nil
end

Before do |scenario|
  feature_name = scenario.feature.name
  if FeatureNameMemory.feature_name != feature_name
    log "Is first scenario - reinstalling apps"
    uninstall_apps
    install_app(ENV["TEST_APP_PATH"])
    install_app(ENV["APP_PATH"])
    FeatureNameMemory.feature_name = feature_name
	end
end

at_exit do
#	uninstall_apps
end

FeatureNameMemory = Class.new
class << FeatureNameMemory
  @feature_name = nil
  attr_accessor :feature_name
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
calabash-android-0.1.0 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.19 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.18 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.17 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.16 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.15 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.14 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.13 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.12 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.11 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.10 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.8 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.7 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.6 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.5 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.4 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.3 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.2 features-skeleton/support/app_installation_hooks.rb
calabash-android-0.0.1 features-skeleton/support/app_installation_hooks.rb