{"action":"opened","issue":{"url":"https://api.github.com/repos/dnesteryuk/whisperer/issues/2","repository_url":"https://api.github.com/repos/dnesteryuk/whisperer","labels_url":"https://api.github.com/repos/dnesteryuk/whisperer/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/dnesteryuk/whisperer/issues/2/comments","events_url":"https://api.github.com/repos/dnesteryuk/whisperer/issues/2/events","html_url":"https://github.com/dnesteryuk/whisperer/issues/2","id":182795984,"number":2,"title":"Generate multiple request/response pairs in one VCR cassette","user":{"login":"jeanlange","id":1461735,"avatar_url":"https://avatars.githubusercontent.com/u/1461735?v=3","gravatar_id":"","url":"https://api.github.com/users/jeanlange","html_url":"https://github.com/jeanlange","followers_url":"https://api.github.com/users/jeanlange/followers","following_url":"https://api.github.com/users/jeanlange/following{/other_user}","gists_url":"https://api.github.com/users/jeanlange/gists{/gist_id}","starred_url":"https://api.github.com/users/jeanlange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeanlange/subscriptions","organizations_url":"https://api.github.com/users/jeanlange/orgs","repos_url":"https://api.github.com/users/jeanlange/repos","events_url":"https://api.github.com/users/jeanlange/events{/privacy}","received_events_url":"https://api.github.com/users/jeanlange/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-13T13:53:41Z","updated_at":"2016-10-13T13:53:41Z","closed_at":null,"body":"I'm using Whisperer to generate cassettes for an API that doesn't exist yet. We're using the cassettes in development to write the UI, and (optionally) when testing to switch our tests back and forth between unit and integration tests.\r\n\r\nIn my current (manually created) setup, for my 'environment' resource, I have one `environments.yml` cassette that contains the responses for `GET environments` as well as `GET environments/id_one`, `GET environments/id_two`, etc... \r\n\r\nSo far, I haven't been able to replicate this with whisperer:\r\n  * A setup with multiple request/responses in the same `Whisperer.define` ends up writing one file with the last request/response pair;\r\n  * A setup with multiple `Whisperer.define`s with the same name writes one file with the last pair;\r\n  * A setup with multiple `Whisperer.define`s with different names writes many files.\r\n\r\nIs what I'm trying to do possible with Whisperer, or should I just be writing a lot of different cassettes and changing my code to talk to different cassettes instead of all calls going through the single environments cassette?"}}
{"actor":{"display_login":"jeanlange"}}