Skip to content

Instantly share code, notes, and snippets.

@lmiller1990
Created September 28, 2018 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmiller1990/d93603b557e962332a16f1717e6bde5d to your computer and use it in GitHub Desktop.
Save lmiller1990/d93603b557e962332a16f1717e6bde5d to your computer and use it in GitHub Desktop.
generate rspec:install && mkdir spec/system
```
Next. update `rails_helper.rb` to let us use `FactoryBot` methods directly in our specs. Also, we want to use `selenium_chrome_headless` for the specs (before moving to Cypress):
```rb
require 'webdrivers'
# ...
RSpec.configure do |config|
config.include FactoryBot::Syntax::Methods
# ...
config.before(:each, type: :system, js: true) do
driven_by :selenium_chrome_headless
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment