Skip to content

Instantly share code, notes, and snippets.

View PavloBezpalov's full-sized avatar

Pavlo Bezpalov PavloBezpalov

View GitHub Profile
@PavloBezpalov
PavloBezpalov / system_test_driven_by_headless_chrome.rb
Created March 14, 2018 12:26 — forked from juno/system_test_driven_by_headless_chrome.rb
Rails 5.1 System Test driven by headless chrome.
driven_by(
:selenium,
using: :chrome,
screen_size: [1400, 900],
options: {
desired_capabilities: {
chromeOptions: {
args: %w[headless disable-gpu],
prefs: {
'modifyheaders.headers.name' => 'Accept-Language',
@PavloBezpalov
PavloBezpalov / .rubocop.yml
Created June 19, 2019 14:01
Rubocop settings that helps
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
TargetRubyVersion: 2.4
DisabledByDefault: true
Exclude:
- db/**/**
- bin/*
# Prefer &&/|| over and/or.