Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 859 Bytes

README.md

File metadata and controls

39 lines (31 loc) · 859 Bytes

Instructions

Step 1: You will need to change constants in spec/reserve_spec.rb line 4 - 7.

Step 2: Install ruby gems in terminal:

bundle install

Step 3: Run unit tests in this repo locally.

If you want to run it once in terminal:

bundle exec rspec

If you want to run it infinitely until you ctrl+C to kill it:

 (
 trap "exit" INT
 while true
   do
   bundle exec rspec

   sleep 1
   done
   ) &
     disown

Webdriver

The default webdriver is set in spec/spec_helper.rb. It uses Chrome in incognito mode: config.default_driver = :selenium_chrome

You can change it to headless chrome in spec/spec_helper.rb: config.default_driver = selenium_chrome_headless