{"action":"created","issue":{"url":"https://api.github.com/repos/litaio/lita-irc/issues/14","labels_url":"https://api.github.com/repos/litaio/lita-irc/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/litaio/lita-irc/issues/14/comments","events_url":"https://api.github.com/repos/litaio/lita-irc/issues/14/events","html_url":"https://github.com/litaio/lita-irc/pull/14","id":90228847,"number":14,"title":"Add room_message and room_join events","user":{"login":"simmel","id":191100,"avatar_url":"https://avatars.githubusercontent.com/u/191100?v=3","gravatar_id":"","url":"https://api.github.com/users/simmel","html_url":"https://github.com/simmel","followers_url":"https://api.github.com/users/simmel/followers","following_url":"https://api.github.com/users/simmel/following{/other_user}","gists_url":"https://api.github.com/users/simmel/gists{/gist_id}","starred_url":"https://api.github.com/users/simmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simmel/subscriptions","organizations_url":"https://api.github.com/users/simmel/orgs","repos_url":"https://api.github.com/users/simmel/repos","events_url":"https://api.github.com/users/simmel/events{/privacy}","received_events_url":"https://api.github.com/users/simmel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/litaio/lita-irc/labels/effort/normal","name":"effort/normal","color":"bfe5bf"},{"url":"https://api.github.com/repos/litaio/lita-irc/labels/status/accepted","name":"status/accepted","color":"fef2c0"},{"url":"https://api.github.com/repos/litaio/lita-irc/labels/type/feature","name":"type/feature","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-22T22:24:53Z","updated_at":"2015-11-06T04:18:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/litaio/lita-irc/pulls/14","html_url":"https://github.com/litaio/lita-irc/pull/14","diff_url":"https://github.com/litaio/lita-irc/pull/14.diff","patch_url":"https://github.com/litaio/lita-irc/pull/14.patch"},"body":"In an ideal world, `user` and `sender` would have the same name but I can't figure out what that key should me named. Like the antonym of `target`. `source`?\r\n\r\nAlso, any ideas how to implement tests for this code?"},"comment":{"url":"https://api.github.com/repos/litaio/lita-irc/issues/comments/154280893","html_url":"https://github.com/litaio/lita-irc/pull/14#issuecomment-154280893","issue_url":"https://api.github.com/repos/litaio/lita-irc/issues/14","id":154280893,"user":{"login":"jimmycuadra","id":122457,"avatar_url":"https://avatars.githubusercontent.com/u/122457?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmycuadra","html_url":"https://github.com/jimmycuadra","followers_url":"https://api.github.com/users/jimmycuadra/followers","following_url":"https://api.github.com/users/jimmycuadra/following{/other_user}","gists_url":"https://api.github.com/users/jimmycuadra/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmycuadra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmycuadra/subscriptions","organizations_url":"https://api.github.com/users/jimmycuadra/orgs","repos_url":"https://api.github.com/users/jimmycuadra/repos","events_url":"https://api.github.com/users/jimmycuadra/events{/privacy}","received_events_url":"https://api.github.com/users/jimmycuadra/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T04:18:09Z","updated_at":"2015-11-06T04:18:09Z","body":"In a real situation, if the bot was in a room and could process a user_room_joined event, a `Lita::Room` object would already have been created for the room, so it's safe to use `Lita::Room.find_by_name` as you are. In the test, the room needs to be manually created in a `before` block to simulate the real situation."}}