added simplecov and a new test

+ simplecov is a test coverage tool to show what code is covered and
  where holes are
+ added newest test to validate that the redirect url works as expected
This commit is contained in:
2023-10-03 18:29:03 -07:00
parent b3d5c70c8b
commit 81b12b5d6f
3 changed files with 22 additions and 0 deletions
+6
View File
@@ -33,3 +33,9 @@ Feature: Homepage
And I click the "Submit" button
Then I should be on "/create" page
And I should see the message "Link exists"
@db-test
Scenario: Accessing the URL based on the shortcode
Given A link already exists with the url "https://google.com" and code "aaaaaa"
When I visit the "/aaaaaa" location
Then I should be redirected to "https://google.com"