OperationCode / operationcode_backend

This is the backend repo for the Operation Code website
https://operationcode.org
MIT License
62 stars 110 forks source link

Https code school url validation #509

Open garyray-k opened 5 years ago

garyray-k commented 5 years ago

Description of changes

Small change to the Makefile with comments that can help anyone debugging to output verbose tests or test just one when running make test

Updated the code_school.rb model to have URL validation for HTTPS. Uses Regex to accomplish this. Added a test to ensure that it will throw an error when a HTTP address is given. Updated the Code School Factory Faker for URL to generate HTTPS urls for mock data in testing

Issue Resolved

Fixes #436

garyray-k commented 5 years ago

Whoops. Didn't mean to close the un-merged PR... :confused: