Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
@wip get a fixture in to allow us to break
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Cowling committed Aug 5, 2014
1 parent cbe1d57 commit 564bdc4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
19 changes: 19 additions & 0 deletions features/fixtures/subgroup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"data": [
{
"_day_start_at": "2014-03-01T00:00:00+00:00",
"_hour_start_at": "2014-03-01T00:00:00+00:00",
"_id": "201403_1_953966",
"_month_start_at": "2014-03-01T00:00:00+00:00",
"_quarter_start_at": "2014-01-01T00:00:00+00:00",
"_timestamp": "2014-03-01T00:00:00+00:00",
"_updated_at": "2014-04-16T10:59:50.431000+00:00",
"_week_start_at": "2014-02-24T00:00:00+00:00",
"comment_count": 1,
"organisation_acronym": "1_953966",
"period": "month",
"total_gov_uk_dept_and_policy_comment_count": 3624
}
],
"warning": "Warning: This data-set is unpublished. Data may be subject to change or be inaccurate."
}
7 changes: 7 additions & 0 deletions features/read_api/group.feature
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ Feature: grouping queries for read api
then I should get back a status of "200"
and the JSON should have "0" results

@broke_as_shit
Scenario: I have a problem with my read API
Given "subgroup.json" is in "weekly" data_set
when I go to "/weekly?limit=1&period=month&group_by=organisation_acronym&filter_by=organisation_acronym%3Aago&collect=comment_count%3Asum&duration=13"
then I should get back a status of "200"
and the JSON should have "0" results


Scenario: grouping data by a period and field representing period is invalid
Given "licensing.json" is in "weekly" data_set
Expand Down

0 comments on commit 564bdc4

Please sign in to comment.