Commit Graph

14 Commits (eed17d61a340a031032bcc78b4e13cf45cb5a884)

Author SHA1 Message Date
Adam Townsend 213265a5d0 added test for submitting with the wrong content type header 2023-10-12 23:30:47 -07:00
Adam Townsend dfb6b23e70 run simplecov for rspec tests 2023-10-12 23:12:14 -07:00
Adam Townsend bbb710a5e1 added test for bad TLD, better named 404 url test 2023-10-12 19:02:38 -07:00
Adam Townsend d78e361c29 added test for validating a url is accessible 2023-10-12 18:25:38 -07:00
Adam Townsend 11206854ad added test for an invalid url 2023-10-12 18:20:35 -07:00
Adam Townsend 1e61a76ded added 2 more tests for empty and missing url data posting to links 2023-10-12 14:27:02 -07:00
Adam Townsend 5ee9351362 added db initialization to make sure the db exists and is up to date
before tests
2023-10-12 11:42:14 -07:00
Adam Townsend 2964e06639 added before and after actions
+ before initializes the db
+ after cleans the db
2023-10-12 11:40:15 -07:00
Adam Townsend d1a0fc0222 change request to use the /links path, to fit more into a RESTful API
format

+ also renamed the test to better describe the behavior
2023-10-12 11:32:00 -07:00
Adam Townsend 3ae20255f6 DRY it out a little 2023-10-11 19:21:21 -07:00
Adam Townsend f69c53bf29 removed unnecessary variable 2023-10-11 19:20:07 -07:00
Adam Townsend 7d6c098047 added more to the spec test for creating a new link 2023-10-11 19:18:47 -07:00
Adam Townsend 0dec27a01c added rspec step in tests stage, adjusted should clause 2023-10-11 11:04:08 -07:00
Adam Townsend c45cf6ab51 started building out rspec specs for API functionality 2023-10-11 11:01:46 -07:00