-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Solved ShelterHandler values inicialization
- Loading branch information
1 parent
b94a6f8
commit 051ccbc
Showing
3 changed files
with
36 additions
and
16 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 |
---|---|---|
|
@@ -6,6 +6,7 @@ Feature: Create Shelter | |
Background: | ||
Given There is a registered user with username "user" and password "password" and email "[email protected]" | ||
Given There is a registered admin with name "admin" and password "password" and email "[email protected]" | ||
Given There is a registered volunteer with name "volunteer" and password "password" and email "[email protected]" | ||
|
||
|
||
Scenario: Create a shelter without being logged in | ||
|
@@ -20,6 +21,13 @@ Feature: Create Shelter | |
When I create a shelter with a name "name", email "[email protected]" and phone "123123123" and location "location" | ||
Then The response code is 201 | ||
|
||
#Scenario: Create shelter as Volunteer | ||
# Given I login as "volunteer" with password "password" | ||
# When I create a shelter with a name "name", email "[email protected]" and phone "123123123" and location "location" | ||
# Then The response code is 401 | ||
# And The error message is "Unauthorized" | ||
# And There is 0 Shelter created | ||
|
||
Scenario: Create shelter as Client | ||
Given I login as "client" with password "password" | ||
When I create a shelter with a name "name", email "[email protected]" and phone "123123123" and location "location" | ||
|