src/project.rb in jspec-4.3.2 vs src/project.rb in jspec-4.3.3

- old
+ new

@@ -35,11 +35,11 @@ ## # Execute _file_ with Rhino. def rhino file - system "java -jar #{rhino_jar} #{file}" + system "java -jar #{rhino_jar} -opt -1 #{file}" end ## # Locate Rhino jar. # @@ -266,10 +266,10 @@ ## # Return the Project instance which should be used for _dest_. def self.for dest - (File.directory?("#{dest}/vendor") ? + (File.exists?("#{dest}/config/boot.rb") ? JSpec::Project::Rails : JSpec::Project).new(dest) end ##