fastruby/harvesting

View on GitHub
fixtures/vcr_cassettes/Harvesting_Models_TimeEntry_create/when_trying_to_create_a_time_entry_without_required_attributes_fails.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: post
    uri: https://api.harvestapp.com/v2/time_entries
    body:
      encoding: UTF-8
      string: '{"project_id":null,"task_id":null,"user_id":null}'
    headers:
      User-Agent:
      - Harvesting Ruby Gem
      Authorization:
      - Bearer $HARVEST_ACCESS_TOKEN
      Harvest-Account-Id:
      - "$HARVEST_ACCOUNT_ID"
      Connection:
      - close
      Content-Type:
      - application/json; charset=UTF-8
      Host:
      - api.harvestapp.com
  response:
    status:
      code: 422
      message: Unprocessable Entity
    headers:
      Server:
      - nginx
      Date:
      - Fri, 25 Jan 2019 18:32:32 GMT
      Content-Type:
      - application/json; charset=utf-8
      Transfer-Encoding:
      - chunked
      Connection:
      - close
      Status:
      - 422 Unprocessable Entity
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      X-Download-Options:
      - noopen
      X-Permitted-Cross-Domain-Policies:
      - none
      Referrer-Policy:
      - strict-origin-when-cross-origin
      Cache-Control:
      - no-cache, no-store
      P3p:
      - 'CP="Our privacy policy is available online: https://www.getharvest.com/services/privacy-policy"'
      X-App-Server:
      - app1
      X-Robots-Tag:
      - noindex, nofollow
      Content-Security-Policy:
      - 'report-uri /csp_reports; default-src *; img-src * data:; font-src data: cache.harvestapp.com
        https://js.intercomcdn.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval''
        https://*.google-analytics.com https://*.nr-data.net https://ajax.googleapis.com
        cache.harvestapp.com https://js-agent.newrelic.com https://platform.twitter.com
        https://www.google.com https://www.googleadservices.com https://www.googletagmanager.com
        https://connect.facebook.net https://googleads.g.doubleclick.net https://app.intercom.io
        https://widget.intercom.io https://js.intercomcdn.com https://cdn.plaid.com;
        style-src ''self'' ''unsafe-inline'' cache.harvestapp.com https://www.google.com'
      X-Request-Id:
      - 8489a0157ae517fc7849f6385223ccde
      X-Runtime:
      - '0.130450'
      Strict-Transport-Security:
      - max-age=31536000; includeSubDomains
    body:
      encoding: UTF-8
      string: '{"message":"Project can''t be blank, Task can''t be blank, Spent date
        can''t be blank, Spent date is not a valid date"}'
    http_version: 
  recorded_at: Fri, 25 Jan 2019 18:32:32 GMT
recorded_with: VCR 4.0.0