bin/calabash-ios-setup.rb in calabash-cucumber-0.9.26 vs bin/calabash-ios-setup.rb in calabash-cucumber-0.9.27

- old
+ new

@@ -136,11 +136,11 @@ end def download_calabash(project_path) file = 'calabash.framework' ##Download calabash.framework - if not Dir.exists?(File.join(project_path, file)) + if not File.directory?(File.join(project_path, file)) msg("Info") do zip_file = "calabash.framework-#{ENV['FRAMEWORK_VERSION']||Calabash::Cucumber::FRAMEWORK_VERSION}.zip" puts "Did not find calabash.framework. I'll download it...'" puts "http://cloud.github.com/downloads/calabash/calabash-ios/#{zip_file}" require 'uri' @@ -512,10 +512,10 @@ end end def validate_app(app) - if not Dir.exists?app + if not File.directory?app msg("Error") do puts "Path: #{app} is not a directory." end exit 1 end \ No newline at end of file