YUL fines/fee payment application
git clone https://github.com/yorkulibraries/yulfines.git
cd yulfines
docker compose up --build
There are 3 containers created: web, db and mailcatcher
By default, the application will listen on port 3004 and runs with RAILS_ENV=development.
To access the application in Chrome browser, you will need to add the ModHeader extension to your Chrome browser.
Header: PYORK_USER Value: admin (or manager or whatever user you want to mimic)
For convenience, you can import the ModHeader profile from the included ModHeader_admin.json.
If you wish to use a different port, you can set the PORT environment or change PORT in .env file.
PORT=4005 docker compose up --build
Start the containers if you haven't started them yet.
docker compose up --build
Run all the tests
docker compose exec web rt
docker compose exec web rts
DB container
docker compose exec db bash
Web container
docker compose exec web bash
Run the tests in the Web container
docker compose exec web bash
rt
rts
Run all tests in a specific test file
docker compose exec web bash
rt test/controllers/process_payments_controller_test.rb
Run a specific test
docker compose exec web bash
rt test/system/process_payments_controller_test.rb:16
Use the following card numbers with future expiry to get an APPROVED status
5454545454545454
4242424242424242
373599005095005
36462462742008