This statement sets the known state before running the test script, see GWT . In this case, it gives the user a warning before running the script.
You can use the following script to verify that the resource is indeed protected by authentication:
Scenario: Anonymous denied access Given I am not authenticated When I go to protected_resource Then I should see "You need to sign in or sign up before continuing"
Protected_resource must be defined in the functions / support / paths.rb
source share