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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user