Skip to content

Commit 3901633

Browse files
committed
Configure Capybara to run Webrick in tests
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.
1 parent 6515144 commit 3901633

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/support/capybara.rb

+1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
)
1717
end
1818

19+
Capybara.server = :webrick
1920
Capybara.javascript_driver = :headless_chrome

0 commit comments

Comments
 (0)