lib/fwtoolkit/test/model_helper.rb in fwtoolkit-0.5.1 vs lib/fwtoolkit/test/model_helper.rb in fwtoolkit-0.5.2
- old
+ new
@@ -36,9 +36,13 @@
def fwt_ios_sdk
raise "IOS_SDK not defined. Please define this in your env.rb, i.e. IOS_SDK='5.1'" unless defined?(IOS_SDK)
IOS_SDK
end
+
+ def fwt_app_path
+ ENV['APP_BUNDLE_PATH'] || (defined?(APP_BUNDLE_PATH) && APP_BUNDLE_PATH)
+ end
def fwt_app_path
raise "APP_BUNDLE_PATH not defined. Please define this in your env.rb, i.e. APP_BUNDLE_PATH='File.expand_path( '../../../frankified_build/Frankified.app', __FILE__ )'" unless defined?(APP_BUNDLE_PATH)
raise "File defined in APP_BUNDLE_PATH (#{APP_BUNDLE_PATH}) does not exist" unless File.exists?(APP_BUNDLE_PATH)
APP_BUNDLE_PATH
\ No newline at end of file