-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #414 from Art4/add-timeentryactivity-listnames
Add `TimeEntryActivity::listNames()` method as replacement for `TimeEntryActivity::listing()`
- Loading branch information
Showing
9 changed files
with
301 additions
and
21 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
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
@time_entry_activity | ||
Feature: Interacting with the REST API for time entry activities | ||
In order to interact with REST API for time entry activities | ||
As a user | ||
I want to make sure the Redmine server replies with the correct response | ||
|
||
Scenario: Listing of zero time entry activities | ||
Given I have a "NativeCurlClient" client | ||
When I list all time entry activities | ||
Then the response has the status code "200" | ||
And the response has the content type "application/json" | ||
And the returned data has only the following properties | ||
""" | ||
time_entry_activities | ||
""" | ||
And the returned data "time_entry_activities" property is an array | ||
And the returned data "time_entry_activities" property contains "0" items | ||
|
||
Scenario: Listing of multiple time entry activities | ||
Given I have a "NativeCurlClient" client | ||
And I have a time entry activiy with name "Development" | ||
And I have a time entry activiy with name "Support" | ||
When I list all time entry activities | ||
Then the response has the status code "200" | ||
And the response has the content type "application/json" | ||
And the returned data has only the following properties | ||
""" | ||
time_entry_activities | ||
""" | ||
And the returned data "time_entry_activities" property is an array | ||
And the returned data "time_entry_activities" property contains "2" items | ||
And the returned data "time_entry_activities.0" property is an array | ||
And the returned data "time_entry_activities.0" property has only the following properties | ||
""" | ||
id | ||
name | ||
is_default | ||
active | ||
""" | ||
And the returned data "time_entry_activities.0" property contains the following data | ||
| property | value | | ||
| id | 1 | | ||
| name | Development | | ||
| is_default | false | | ||
| active | true | | ||
And the returned data "time_entry_activities.1" property is an array | ||
And the returned data "time_entry_activities.1" property has only the following properties | ||
""" | ||
id | ||
name | ||
is_default | ||
active | ||
""" | ||
And the returned data "time_entry_activities.1" property contains the following data | ||
| property | value | | ||
| id | 2 | | ||
| name | Support | | ||
| is_default | false | | ||
| active | true | | ||
|
||
Scenario: Listing of multiple time entry activity names | ||
Given I have a "NativeCurlClient" client | ||
And I have a time entry activiy with name "Development" | ||
And I have a time entry activiy with name "Support" | ||
When I list all time entry activity names | ||
Then the response has the status code "200" | ||
And the response has the content type "application/json" | ||
And the returned data is an array | ||
And the returned data contains "2" items | ||
And the returned data contains the following data | ||
| property | value | | ||
| 1 | Development | | ||
| 2 | Support | | ||
|
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
Oops, something went wrong.