Skip to content

Commit

Permalink
feat: adds "method" expectation suite
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-zakharchenko committed May 31, 2019
1 parent ac26d1d commit 9c1f450
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions features/expectations/method.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@stable
Feature: Method

Background:
Given you expect HTTP message method "POST"

Scenario: Different HTTP message method
When real HTTP message method is "GET"
Then Gavel will set some errors for "method"
And Request or Response is NOT valid

Scenario: HTTP message method match
When real method is "POST"
Then Gavel will NOT set any errors for "method"
And Request or Response is valid

0 comments on commit 9c1f450

Please sign in to comment.