1
0
Fork 0
mirror of https://github.com/teampoltergeist/poltergeist.git synced 2022-11-09 12:05:00 -05:00
teampoltergeist--poltergeist/spec/integration/driver_spec.rb

23 lines
656 B
Ruby
Raw Normal View History

2011-10-27 23:34:14 +01:00
require 'spec_helper'
describe Capybara::Poltergeist::Driver do
before do
@driver = TestSessions::Poltergeist.driver
end
it_should_behave_like "driver"
it_should_behave_like "driver with javascript support"
it_should_behave_like "driver with frame support"
it_should_behave_like "driver without status code support"
it_should_behave_like "driver with cookies support"
it 'should support a custom phantomjs path' do
path = File.expand_path('../../support/custom_phantomjs', __FILE__)
2011-10-27 23:34:14 +01:00
driver = Capybara::Poltergeist::Driver.new(nil, :phantomjs => path)
driver.browser
2011-10-27 23:34:14 +01:00
2011-10-28 09:32:35 +01:00
`ps -o command=`.should include(path)
2011-10-27 23:34:14 +01:00
end
end