lib/teaspoon/driver/phantomjs.rb in teaspoon-1.0.0 vs lib/teaspoon/driver/phantomjs.rb in teaspoon-1.0.1

- old
+ new

@@ -49,10 +49,10 @@ end def executable return @executable if @executable @executable = which("phantomjs") - @executable = Phantomjs.path if @executable.blank? && defined?(::Phantomjs) + @executable = ::Phantomjs.path if @executable.blank? && defined?(::Phantomjs) return @executable unless @executable.blank? raise Teaspoon::MissingDependencyError.new("Unable to locate phantomjs. Install it or use the phantomjs gem.") end def script