lib/calabash-cucumber/launch/simulator_helper.rb in calabash-cucumber-0.9.26 vs lib/calabash-cucumber/launch/simulator_helper.rb in calabash-cucumber-0.9.27
- old
+ new
@@ -59,10 +59,10 @@
def self.app_bundle_or_raise(path)
dd_dir = derived_data_dir_for_project
app_bundles = Dir.glob(File.join(dd_dir, "Build", "Products", "*", "*.app"))
bundle_path = nil
- if path and not Dir.exist?(path)
+ if path and not File.directory?(path)
puts "Unable to find .app bundle at #{path}"
if dd_dir.nil?
raise "Unable to find Project for #{project_dir} in #{%x[ls #{DEFAULT_DERIVED_DATA}]}"
end
if app_bundles.empty?