lib/calabash-cucumber/launch/simulator_helper.rb in calabash-cucumber-0.9.50 vs lib/calabash-cucumber/launch/simulator_helper.rb in calabash-cucumber-0.9.51
- old
+ new
@@ -96,10 +96,10 @@
File.expand_path(ENV['PROJECT_DIR'] || Dir.pwd)
end
def self.app_bundle_or_raise(path)
bundle_path = nil
- path = File.expand_path(path)
+ path = File.expand_path(path) if path
if path and not File.directory?(path)
puts "Unable to find .app bundle at #{path}. It should be an .app directory."
dd_dir = derived_data_dir_for_project
app_bundles = Dir.glob(File.join(dd_dir, "Build", "Products", "*", "*.app"))