This gist contains all you need to setup capybara for selenium with headless chrome.
- Add these gems to the Gemfile under test group
gem 'capybara'
gem 'chromedriver-helper
gem 'selenium-webdriver'
| #!/usr/bin/env ruby | |
| # Validates that you don't commit forbidden keywords to the repo | |
| # You can skip this checking with 'git commit --no-verify' | |
| exit 0 if ARGV.include?('--no-verify') | |
| # Update this list with your own forbidden keywords | |
| KEYWORDS = %w(binding.pry console.log debugger) | |
| def red(text) "\033[31m#{text}\033[0m"; end |
| #!/usr/bin/env ruby | |
| # Validates that you don't commit forbidden keywords to the repo | |
| # You can skip this checking with 'git commit --no-verify' | |
| exit 0 if ARGV.include?('--no-verify') | |
| # Update this list with your own forbidden keywords | |
| KEYWORDS = %w(binding.pry console.log debugger) | |
| def red(text) "\033[31m#{text}\033[0m"; end |