Run rspec tests

bundle exec rspec

To re-run just the tests that failed in the most recent running... First, you must make sure that:

  • In this file: spec/spec_helper.rb you have uncommented and set up this line:config.example_status_persistence_file_path = "spec/examples.txt"

  • You have created a blank text file and saved it in /spec folder: examples.txt

  • You have added examples.txt to .gitignore

Then, after running the tests and some failed, you can run this:

bundle exec rspec --only-failures

Temporarily run tests in non-headless mode

In /spec/rails_helper.rb add or uncomment this code, then run the tests. Comment this out when you want to switch back to headless.

Capybara.javascript_driver = :chrome

Last updated