Skip to content

Commit

Permalink
add a assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibautGery committed Jun 3, 2016
1 parent df0627e commit c3d6816
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

response.status.should eql(200)
data = MultiJson.load(response.body)
data["results"].length.should be > 0
data["results"][0]["hits"].should eql(2)
data["hits_over_time"]["rows"][0]["c"][0]["f"].should eql("Tue, Jan 13, 2015")
data["hits_over_time"]["rows"][0]["c"][0]["v"].should eql(1421132400000)
Expand Down Expand Up @@ -64,6 +65,7 @@

response.status.should eql(200)
data = MultiJson.load(response.body)
data["results"].length.should be > 0
data["results"][0]["hits"].should eql(4)
data["hits_over_time"]["rows"][0]["c"][0]["f"].should eql("Sat, Mar 7, 2015")
data["hits_over_time"]["rows"][0]["c"][0]["v"].should eql(1425711600000)
Expand Down Expand Up @@ -100,6 +102,7 @@

response.status.should eql(200)
data = MultiJson.load(response.body)
data["results"].length.should be > 0
data["results"][0]["hits"].should eql(2)
data["hits_over_time"]["rows"][0]["c"][0]["f"].should eql("Sun, Mar 8, 2015 12:00am MST")
data["hits_over_time"]["rows"][0]["c"][0]["v"].should eql(1425798000000)
Expand Down Expand Up @@ -142,6 +145,7 @@

response.status.should eql(200)
data = MultiJson.load(response.body)
data["results"].length.should be > 0
data["results"][0]["hits"].should eql(4)
data["hits_over_time"]["rows"][0]["c"][0]["f"].should eql("Sat, Nov 1, 2014")
data["hits_over_time"]["rows"][0]["c"][0]["v"].should eql(1414821600000)
Expand Down Expand Up @@ -178,6 +182,7 @@

response.status.should eql(200)
data = MultiJson.load(response.body)
data["results"].length.should be > 0
data["results"][0]["hits"].should eql(2)
data["hits_over_time"]["rows"][1]["c"][0]["f"].should eql("Sun, Nov 2, 2014 1:00am MDT")
data["hits_over_time"]["rows"][1]["c"][0]["v"].should eql(1414911600000)
Expand Down

0 comments on commit c3d6816

Please sign in to comment.