Use poltergeist instaead of capybara-webkit
This commit is contained in:
parent
ece563296b
commit
ba25b2dc84
5 changed files with 38 additions and 21 deletions
|
@ -11,14 +11,13 @@ require 'capybara/rails'
|
|||
require 'capybara/rspec'
|
||||
require 'webmock/rspec'
|
||||
require 'email_spec'
|
||||
require 'headless'
|
||||
|
||||
# Requires supporting ruby files with custom matchers and macros, etc,
|
||||
# in spec/support/ and its subdirectories.
|
||||
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
||||
|
||||
# Use capybara-webkit
|
||||
Capybara.javascript_driver = :webkit
|
||||
require 'capybara/poltergeist'
|
||||
Capybara.javascript_driver = :poltergeist
|
||||
|
||||
WebMock.disable_net_connect!(allow_localhost: true)
|
||||
|
||||
|
@ -35,11 +34,6 @@ RSpec.configure do |config|
|
|||
# instead of true.
|
||||
config.use_transactional_fixtures = false
|
||||
|
||||
config.before :all do
|
||||
headless = Headless.new
|
||||
headless.start
|
||||
end
|
||||
|
||||
config.before do
|
||||
stub_gitolite!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue