-
-
Save lmiller1990/d93603b557e962332a16f1717e6bde5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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