Skip to content

Commit

Permalink
Poltergeist driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
oesmith committed Oct 11, 2012
1 parent 2f07d40 commit b985cc5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/billy/rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,19 @@ def proxy
end
end

if defined?(Capybara)

if defined?(Capybara::Poltergeist)
Capybara.register_driver :poltergeist_billy do |app|
options = {
phantomjs_options: [
'--ignore-ssl-errors=yes',
"--proxy=#{Billy.proxy.host}:#{Billy.proxy.port}"
]
}
Capybara::Poltergeist::Driver.new(app, options)
end
end

# TODO selenium / webkit
end

0 comments on commit b985cc5

Please sign in to comment.