Skip to content

Commit

Permalink
Configure Capybara to run Webrick in tests
Browse files Browse the repository at this point in the history
This commit resolves dependecy issues due to the absence of `puma` from
the project's Gemfiles:

```
Failure/Error: raise LoadError, "Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`."

LoadError:
Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
```

Instead of adding an additional dependency, configure Capybara to use
`webrick`, which is available as part of Ruby's standard library.
  • Loading branch information
seanpdoyle committed Apr 27, 2018
1 parent 6515144 commit 3901633
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/support/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
)
end

Capybara.server = :webrick
Capybara.javascript_driver = :headless_chrome

0 comments on commit 3901633

Please sign in to comment.