{"action":"closed","issue":{"url":"https://api.github.com/repos/my-codeworks/fortnox-api/issues/24","repository_url":"https://api.github.com/repos/my-codeworks/fortnox-api","labels_url":"https://api.github.com/repos/my-codeworks/fortnox-api/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/my-codeworks/fortnox-api/issues/24/comments","events_url":"https://api.github.com/repos/my-codeworks/fortnox-api/issues/24/events","html_url":"https://github.com/my-codeworks/fortnox-api/issues/24","id":138950460,"number":24,"title":"Try using VCR for mocking web requests with responses","user":{"login":"ehannes","id":5365246,"avatar_url":"https://avatars.githubusercontent.com/u/5365246?v=3","gravatar_id":"","url":"https://api.github.com/users/ehannes","html_url":"https://github.com/ehannes","followers_url":"https://api.github.com/users/ehannes/followers","following_url":"https://api.github.com/users/ehannes/following{/other_user}","gists_url":"https://api.github.com/users/ehannes/gists{/gist_id}","starred_url":"https://api.github.com/users/ehannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehannes/subscriptions","organizations_url":"https://api.github.com/users/ehannes/orgs","repos_url":"https://api.github.com/users/ehannes/repos","events_url":"https://api.github.com/users/ehannes/events{/privacy}","received_events_url":"https://api.github.com/users/ehannes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/my-codeworks/fortnox-api/labels/PR%20open","name":"PR open","color":"fef2c0"}],"state":"closed","locked":false,"assignee":{"login":"ehannes","id":5365246,"avatar_url":"https://avatars.githubusercontent.com/u/5365246?v=3","gravatar_id":"","url":"https://api.github.com/users/ehannes","html_url":"https://github.com/ehannes","followers_url":"https://api.github.com/users/ehannes/followers","following_url":"https://api.github.com/users/ehannes/following{/other_user}","gists_url":"https://api.github.com/users/ehannes/gists{/gist_id}","starred_url":"https://api.github.com/users/ehannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehannes/subscriptions","organizations_url":"https://api.github.com/users/ehannes/orgs","repos_url":"https://api.github.com/users/ehannes/repos","events_url":"https://api.github.com/users/ehannes/events{/privacy}","received_events_url":"https://api.github.com/users/ehannes/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-03-07T10:56:44Z","updated_at":"2016-03-15T14:25:23Z","closed_at":"2016-03-15T14:25:23Z","body":"Webmock is used for simple web requests, but when wanting responses from the Fortnox API, it will mean huge amount of work to mock the responses. [vcr](https://github.com/vcr/vcr) could be better suited for this work. It can record the response from Fortnox API and save it to a file that can be used in specs. Updating these records is easy, which will be necessary when Fortnox API is updated or changed."}}