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

Commit

Permalink
Enable feature tests for grouping by hour
Browse files Browse the repository at this point in the history
  • Loading branch information
phss committed Oct 18, 2013
1 parent aa4da37 commit 384f0b5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions features/read_api/group_by_hour.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Feature: querying for data grouped by hour
This feature is for querying for data grouped by hour

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

@wip
Scenario: grouping data by hour between two timestamps
Scenario: grouping data by hour between two days
Given I have the data in "hourly_timestamps.json"
And I have a bucket named "hour"
When I post the data to "/hour"
Then I should get back a status of "200"
When I go to "/hour?period=hour&start_at=2013-04-01T13:00:00Z&end_at=2013-04-20T13:00:00Z"
Then the JSON should have "24" results
When I go to "/hour?period=hour&start_at=2013-04-01T13:00:00Z&end_at=2013-04-03T13:00:00Z"
Then the JSON should have "48" results

0 comments on commit 384f0b5

Please sign in to comment.