-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
Feature: Setup of the middleware | ||
|
||
Scenario: Simple setup with session support | ||
Given a Rack setup with the session middleware | ||
Given a rack with the session middleware | ||
When I insert the anti-CSRF middleware | ||
Then I get a fully functional rack | ||
|
||
Scenario: Simple setup without session support | ||
Given a Rack setup without the session middleware | ||
Given a rack without the session middleware | ||
When I insert the anti-CSRF middleware | ||
Then I get an error message | ||
|
||
Scenario: Setup with :raise option | ||
Given a Rack setup with the session middleware | ||
Given a rack with the session middleware | ||
When I insert the anti-CSRF middleware with the :raise option | ||
Then I get a fully functional rack | ||
|
||
Scenario: Setup with the :skip option | ||
Given a Rack setup with the session middleware | ||
Given a rack with the session middleware | ||
When I insert the anti-CSRF middleware with the :skip option | ||
| route | | ||
| POST:/not_checking | | ||
| PUT:/is_wrong | | ||
Then I get a fully functional rack | ||
|
||
Scenario: Setup with the :field option | ||
Given a Rack setup with the session middleware | ||
Given a rack with the session middleware | ||
When I insert the anti-CSRF middleware with the :field option | ||
Then I get a fully functional rack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters