diff --git a/Testing-and-Rspec-Tips.md b/Testing-and-Rspec-Tips.md index 7153f03..e332795 100644 --- a/Testing-and-Rspec-Tips.md +++ b/Testing-and-Rspec-Tips.md @@ -53,9 +53,8 @@ As you make changes to the test code base, you are encouraged to convert the syn It may be useful to see a real browser running the whole spec. You can also Debug things directly on the browser with this. This is how you can do it: -- open spec/spec_helper.rb -- remove the word `headless` -- done! you can add a "byebug" entry in your spec to get the test execution to stop at some point +- Append `HEADLESS=false` to the rspec command. +- Your rspec command should look like: `HEADLESS=false bundle exec rspec spec/system/admin/order_spec.rb:1023`