```ruby
require 'capybara/poltergeist'

Capybara.javascript_driver = :poltergeist
```

Fix issue with phantom JS loading assets
user
```ruby
require 'capybara/poltergeist'

Capybara.register_driver :poltergeist do |app|
  Capybara::Poltergeist::Driver.new(app, { phantomjs_options: ['--ssl-protocol=TLSv1'] })
end

Capybara.javascript_driver = :poltergeist

```
assistant