Skip to content

Commit

Permalink
Suppress warnings that phantomjs was not installed system-wide
Browse files Browse the repository at this point in the history
An according pull request was made upstream at
colszowka/phantomjs-gem#61
  • Loading branch information
aduffeck committed Oct 1, 2015
1 parent 33ea2c4 commit d0a7ca7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/features/feature_spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@

require_relative "../../lib/machinery"

# Suppress phantomjs-gem warning about phantomjs not being installed system-wide
require 'phantomjs'
module Phantomjs
class Platform
def self.system_phantomjs_path
`which phantomjs 2> /dev/null`.delete("\n")
rescue
end
end
end

require "byebug"
require "rspec-steps"
require "capybara/rspec"
Expand Down

0 comments on commit d0a7ca7

Please sign in to comment.