TheODI-UD2D/route_c

View on GitHub
fixtures/rspec/vcr/RouteC_Query/gets_the_average_occupancy.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: get
    uri: http://<SIR_HANDEL_USERNAME>:<SIR_HANDEL_PASSWORD>@goingunderground.herokuapp.com/stations/arriving/southbound/euston/2015-09-23T16:20:00.json
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Server:
      - Cowboy
      Date:
      - Mon, 29 Feb 2016 10:34:51 GMT
      Connection:
      - keep-alive
      Content-Type:
      - application/json
      Vary:
      - Accept
      X-Content-Type-Options:
      - nosniff
      Content-Length:
      - '1728'
      Via:
      - 1.1 vegur
    body:
      encoding: UTF-8
      string: '[[{"segment":1193,"number":0,"timeStamp":"2015-09-23T16:08:39.575Z"},{"CAR_A":29.443181818181817,"CAR_B":17.266666666666666,"CAR_C":12.931506849315069,"CAR_D":13.32857142857143}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T14:58:45.09Z"},{"CAR_A":27.382022471910112,"CAR_B":23.130434782608695,"CAR_C":11.327272727272728,"CAR_D":6.314814814814815}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T13:31:52.459Z"},{"CAR_A":30.984848484848484,"CAR_B":31.016666666666666,"CAR_C":17.339622641509433,"CAR_D":24.491525423728813}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T11:12:05.328Z"},{"CAR_A":25.066666666666666,"CAR_B":17.568627450980394,"CAR_C":16.59090909090909,"CAR_D":7.976744186046512}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T08:28:09.875Z"},{"CAR_A":76.51546391752578,"CAR_B":68.54166666666667,"CAR_C":66.63013698630137,"CAR_D":61.13636363636363}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T08:27:35.975Z"},{"CAR_A":82.1938775510204,"CAR_B":74.24489795918367,"CAR_C":68.07246376811594,"CAR_D":64.7127659574468}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T07:11:42.012Z"},{"CAR_A":97.02272727272727,"CAR_B":80.56989247311827,"CAR_C":66.51315789473684,"CAR_D":73.3768115942029}],[{"segment":1193,"number":0,"timeStamp":"2015-09-22T23:07:11.575Z"},{"CAR_A":16.650602409638555,"CAR_B":10.929577464788732,"CAR_C":15.414285714285715,"CAR_D":15.185714285714285}],[{"segment":1193,"number":0,"timeStamp":"2015-09-22T21:50:17.475Z"},{"CAR_A":27.041666666666668,"CAR_B":21.36,"CAR_C":13.95,"CAR_D":6.521739130434782}],[{"segment":1193,"number":0,"timeStamp":"2015-09-22T16:50:48.528Z"},{"CAR_A":41.75,"CAR_B":32.36363636363637,"CAR_C":26.11111111111111,"CAR_D":27.11111111111111}]]'
    http_version: 
  recorded_at: Fri, 01 Jan 2016 16:20:00 GMT
recorded_with: VCR 3.0.1