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

Commit

Permalink
Fix test data to be more than 7 days
Browse files Browse the repository at this point in the history
  • Loading branch information
phss committed Oct 18, 2013
1 parent f7a1f01 commit ea9514d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions features/read_api/group_by_day.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Feature: querying for data grouped by day
This feature is for querying for data grouped by day

@wip
Scenario: grouping data by day
Given I have the data in "daily_timestamps.json"
And I have a bucket named "day"
Expand All @@ -11,11 +10,10 @@ Feature: querying for data grouped by day
When I go to "/day?period=day"
Then the JSON should have "12" results

@wip
Scenario: grouping data by day between two allowed timestamps
Scenario: grouping data by day between two timestamps
Given I have the data in "daily_timestamps.json"
And I have a bucket named "day"
When I post the data to "/day"
Then I should get back a status of "200"
When I go to "/day?period=day&start_at=2013-04-04T00:00:00Z&end_at=2013-04-08T00:00:00Z"
Then the JSON should have "4" results
When I go to "/day?period=day&start_at=2013-04-04T00:00:00Z&end_at=2013-04-11T00:00:00Z"
Then the JSON should have "7" results

0 comments on commit ea9514d

Please sign in to comment.