{"action":"created","issue":{"url":"https://api.github.com/repos/martingordon/bronto-ruby/issues/17","labels_url":"https://api.github.com/repos/martingordon/bronto-ruby/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/martingordon/bronto-ruby/issues/17/comments","events_url":"https://api.github.com/repos/martingordon/bronto-ruby/issues/17/events","html_url":"https://github.com/martingordon/bronto-ruby/pull/17","id":114832607,"number":17,"title":"Fix connection caching for multiple api keys","user":{"login":"jordan-brough","id":23050,"avatar_url":"https://avatars.githubusercontent.com/u/23050?v=3","gravatar_id":"","url":"https://api.github.com/users/jordan-brough","html_url":"https://github.com/jordan-brough","followers_url":"https://api.github.com/users/jordan-brough/followers","following_url":"https://api.github.com/users/jordan-brough/following{/other_user}","gists_url":"https://api.github.com/users/jordan-brough/gists{/gist_id}","starred_url":"https://api.github.com/users/jordan-brough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordan-brough/subscriptions","organizations_url":"https://api.github.com/users/jordan-brough/orgs","repos_url":"https://api.github.com/users/jordan-brough/repos","events_url":"https://api.github.com/users/jordan-brough/events{/privacy}","received_events_url":"https://api.github.com/users/jordan-brough/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-03T14:48:04Z","updated_at":"2015-11-03T17:52:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/martingordon/bronto-ruby/pulls/17","html_url":"https://github.com/martingordon/bronto-ruby/pull/17","diff_url":"https://github.com/martingordon/bronto-ruby/pull/17.diff","patch_url":"https://github.com/martingordon/bronto-ruby/pull/17.patch"},"body":"This fixes connection caching for apps that have multiple api keys.\r\n\r\nWithout this fix if you use multiple api keys in your app and you try\r\nto change `Bronto::Base.api_key` you may get an api connection using\r\nthe wrong api key."},"comment":{"url":"https://api.github.com/repos/martingordon/bronto-ruby/issues/comments/153431988","html_url":"https://github.com/martingordon/bronto-ruby/pull/17#issuecomment-153431988","issue_url":"https://api.github.com/repos/martingordon/bronto-ruby/issues/17","id":153431988,"user":{"login":"jordan-brough","id":23050,"avatar_url":"https://avatars.githubusercontent.com/u/23050?v=3","gravatar_id":"","url":"https://api.github.com/users/jordan-brough","html_url":"https://github.com/jordan-brough","followers_url":"https://api.github.com/users/jordan-brough/followers","following_url":"https://api.github.com/users/jordan-brough/following{/other_user}","gists_url":"https://api.github.com/users/jordan-brough/gists{/gist_id}","starred_url":"https://api.github.com/users/jordan-brough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordan-brough/subscriptions","organizations_url":"https://api.github.com/users/jordan-brough/orgs","repos_url":"https://api.github.com/users/jordan-brough/repos","events_url":"https://api.github.com/users/jordan-brough/events{/privacy}","received_events_url":"https://api.github.com/users/jordan-brough/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T17:52:36Z","updated_at":"2015-11-03T17:52:36Z","body":"@martingordon how were you running your tests in this repo?  If I tweak stuff around a bit I can get them to run but they all fail because they don't have an api key.  What command were you using to test? Did you have an api key you were manually putting in when you ran tests?\r\n\r\nI added some tests but they won't work right now because the api keys I specified for them don't exist.  Any preference on how to test this?  e.g. I could add Mocha to stub the API requests."}}