{"action":"created","comment":{"url":"https://api.github.com/repos/u2i/confy/pulls/comments/70049076","id":70049076,"diff_hunk":"@@ -10,14 +10,35 @@\n       it { is_expected.to validate_presence_of s }\n     end\n \n-\n     it \"must ensure that start_time is lower than end_time\" do\n       event.end_time = event.start_time - 10\n       expect(event).not_to be_valid\n       expect(event.errors[:start_time]).to be_present\n       event.end_time = event.start_time + 20.minutes\n       expect(event).to be_valid\n     end\n+\n+    context 'must ensure events do not collide' do\n+      context 'with same conference room' do\n+        let!(:other_event) { create(:event, conference_room: room) }\n+\n+        it 'is not valid' do\n+          event.conference_room = room","path":"spec/models/event_spec.rb","position":18,"original_position":18,"commit_id":"6a5a1dfabf4922319a373b705d4250b7f0d9d731","original_commit_id":"6a5a1dfabf4922319a373b705d4250b7f0d9d731","user":{"login":"pbzymek","id":339719,"avatar_url":"https://avatars.githubusercontent.com/u/339719?v=3","gravatar_id":"","url":"https://api.github.com/users/pbzymek","html_url":"https://github.com/pbzymek","followers_url":"https://api.github.com/users/pbzymek/followers","following_url":"https://api.github.com/users/pbzymek/following{/other_user}","gists_url":"https://api.github.com/users/pbzymek/gists{/gist_id}","starred_url":"https://api.github.com/users/pbzymek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbzymek/subscriptions","organizations_url":"https://api.github.com/users/pbzymek/orgs","repos_url":"https://api.github.com/users/pbzymek/repos","events_url":"https://api.github.com/users/pbzymek/events{/privacy}","received_events_url":"https://api.github.com/users/pbzymek/received_events","type":"User","site_admin":false},"body":"this should got to before section","created_at":"2016-07-08T09:36:37Z","updated_at":"2016-07-08T09:36:37Z","html_url":"https://github.com/u2i/confy/pull/14#discussion_r70049076","pull_request_url":"https://api.github.com/repos/u2i/confy/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/u2i/confy/pulls/comments/70049076"},"html":{"href":"https://github.com/u2i/confy/pull/14#discussion_r70049076"},"pull_request":{"href":"https://api.github.com/repos/u2i/confy/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/u2i/confy/pulls/14","id":76567627,"html_url":"https://github.com/u2i/confy/pull/14","diff_url":"https://github.com/u2i/confy/pull/14.diff","patch_url":"https://github.com/u2i/confy/pull/14.patch","issue_url":"https://api.github.com/repos/u2i/confy/issues/14","number":14,"state":"open","locked":false,"title":"New event form","user":{"login":"lkudyba","id":10232740,"avatar_url":"https://avatars.githubusercontent.com/u/10232740?v=3","gravatar_id":"","url":"https://api.github.com/users/lkudyba","html_url":"https://github.com/lkudyba","followers_url":"https://api.github.com/users/lkudyba/followers","following_url":"https://api.github.com/users/lkudyba/following{/other_user}","gists_url":"https://api.github.com/users/lkudyba/gists{/gist_id}","starred_url":"https://api.github.com/users/lkudyba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lkudyba/subscriptions","organizations_url":"https://api.github.com/users/lkudyba/orgs","repos_url":"https://api.github.com/users/lkudyba/repos","events_url":"https://api.github.com/users/lkudyba/events{/privacy}","received_events_url":"https://api.github.com/users/lkudyba/received_events","type":"User","site_admin":false},"body":"@adamzima @jtkpiotr @mhib @pbzymek @s1mplex ","created_at":"2016-07-07T09:51:09Z","updated_at":"2016-07-08T09:36:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4093ad4ec10070206196fdb335b63afee77dbcd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/u2i/confy/pulls/14/commits","review_comments_url":"https://api.github.com/repos/u2i/confy/pulls/14/comments","review_comment_url":"https://api.github.com/repos/u2i/confy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/u2i/confy/issues/14/comments","statuses_url":"https://api.github.com/repos/u2i/confy/statuses/6a5a1dfabf4922319a373b705d4250b7f0d9d731","head":{"label":"u2i:new-event","ref":"new-event","sha":"6a5a1dfabf4922319a373b705d4250b7f0d9d731","user":{"login":"u2i","id":856377,"avatar_url":"https://avatars.githubusercontent.com/u/856377?v=3","gravatar_id":"","url":"https://api.github.com/users/u2i","html_url":"https://github.com/u2i","followers_url":"https://api.github.com/users/u2i/followers","following_url":"https://api.github.com/users/u2i/following{/other_user}","gists_url":"https://api.github.com/users/u2i/gists{/gist_id}","starred_url":"https://api.github.com/users/u2i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u2i/subscriptions","organizations_url":"https://api.github.com/users/u2i/orgs","repos_url":"https://api.github.com/users/u2i/repos","events_url":"https://api.github.com/users/u2i/events{/privacy}","received_events_url":"https://api.github.com/users/u2i/received_events","type":"Organization","site_admin":false},"repo":{"id":62560182,"name":"confy","full_name":"u2i/confy","owner":{"login":"u2i","id":856377,"avatar_url":"https://avatars.githubusercontent.com/u/856377?v=3","gravatar_id":"","url":"https://api.github.com/users/u2i","html_url":"https://github.com/u2i","followers_url":"https://api.github.com/users/u2i/followers","following_url":"https://api.github.com/users/u2i/following{/other_user}","gists_url":"https://api.github.com/users/u2i/gists{/gist_id}","starred_url":"https://api.github.com/users/u2i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u2i/subscriptions","organizations_url":"https://api.github.com/users/u2i/orgs","repos_url":"https://api.github.com/users/u2i/repos","events_url":"https://api.github.com/users/u2i/events{/privacy}","received_events_url":"https://api.github.com/users/u2i/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/u2i/confy","description":null,"fork":false,"url":"https://api.github.com/repos/u2i/confy","forks_url":"https://api.github.com/repos/u2i/confy/forks","keys_url":"https://api.github.com/repos/u2i/confy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/u2i/confy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/u2i/confy/teams","hooks_url":"https://api.github.com/repos/u2i/confy/hooks","issue_events_url":"https://api.github.com/repos/u2i/confy/issues/events{/number}","events_url":"https://api.github.com/repos/u2i/confy/events","assignees_url":"https://api.github.com/repos/u2i/confy/assignees{/user}","branches_url":"https://api.github.com/repos/u2i/confy/branches{/branch}","tags_url":"https://api.github.com/repos/u2i/confy/tags","blobs_url":"https://api.github.com/repos/u2i/confy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/u2i/confy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/u2i/confy/git/refs{/sha}","trees_url":"https://api.github.com/repos/u2i/confy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/u2i/confy/statuses/{sha}","languages_url":"https://api.github.com/repos/u2i/confy/languages","stargazers_url":"https://api.github.com/repos/u2i/confy/stargazers","contributors_url":"https://api.github.com/repos/u2i/confy/contributors","subscribers_url":"https://api.github.com/repos/u2i/confy/subscribers","subscription_url":"https://api.github.com/repos/u2i/confy/subscription","commits_url":"https://api.github.com/repos/u2i/confy/commits{/sha}","git_commits_url":"https://api.github.com/repos/u2i/confy/git/commits{/sha}","comments_url":"https://api.github.com/repos/u2i/confy/comments{/number}","issue_comment_url":"https://api.github.com/repos/u2i/confy/issues/comments{/number}","contents_url":"https://api.github.com/repos/u2i/confy/contents/{+path}","compare_url":"https://api.github.com/repos/u2i/confy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/u2i/confy/merges","archive_url":"https://api.github.com/repos/u2i/confy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/u2i/confy/downloads","issues_url":"https://api.github.com/repos/u2i/confy/issues{/number}","pulls_url":"https://api.github.com/repos/u2i/confy/pulls{/number}","milestones_url":"https://api.github.com/repos/u2i/confy/milestones{/number}","notifications_url":"https://api.github.com/repos/u2i/confy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/u2i/confy/labels{/name}","releases_url":"https://api.github.com/repos/u2i/confy/releases{/id}","deployments_url":"https://api.github.com/repos/u2i/confy/deployments","created_at":"2016-07-04T12:23:19Z","updated_at":"2016-07-04T13:24:19Z","pushed_at":"2016-07-08T09:13:47Z","git_url":"git://github.com/u2i/confy.git","ssh_url":"git@github.com:u2i/confy.git","clone_url":"https://github.com/u2i/confy.git","svn_url":"https://github.com/u2i/confy","homepage":null,"size":108,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"u2i:develop","ref":"develop","sha":"839a3aba5f82ddc353b021893b74e1e9fbd803d4","user":{"login":"u2i","id":856377,"avatar_url":"https://avatars.githubusercontent.com/u/856377?v=3","gravatar_id":"","url":"https://api.github.com/users/u2i","html_url":"https://github.com/u2i","followers_url":"https://api.github.com/users/u2i/followers","following_url":"https://api.github.com/users/u2i/following{/other_user}","gists_url":"https://api.github.com/users/u2i/gists{/gist_id}","starred_url":"https://api.github.com/users/u2i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u2i/subscriptions","organizations_url":"https://api.github.com/users/u2i/orgs","repos_url":"https://api.github.com/users/u2i/repos","events_url":"https://api.github.com/users/u2i/events{/privacy}","received_events_url":"https://api.github.com/users/u2i/received_events","type":"Organization","site_admin":false},"repo":{"id":62560182,"name":"confy","full_name":"u2i/confy","owner":{"login":"u2i","id":856377,"avatar_url":"https://avatars.githubusercontent.com/u/856377?v=3","gravatar_id":"","url":"https://api.github.com/users/u2i","html_url":"https://github.com/u2i","followers_url":"https://api.github.com/users/u2i/followers","following_url":"https://api.github.com/users/u2i/following{/other_user}","gists_url":"https://api.github.com/users/u2i/gists{/gist_id}","starred_url":"https://api.github.com/users/u2i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u2i/subscriptions","organizations_url":"https://api.github.com/users/u2i/orgs","repos_url":"https://api.github.com/users/u2i/repos","events_url":"https://api.github.com/users/u2i/events{/privacy}","received_events_url":"https://api.github.com/users/u2i/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/u2i/confy","description":null,"fork":false,"url":"https://api.github.com/repos/u2i/confy","forks_url":"https://api.github.com/repos/u2i/confy/forks","keys_url":"https://api.github.com/repos/u2i/confy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/u2i/confy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/u2i/confy/teams","hooks_url":"https://api.github.com/repos/u2i/confy/hooks","issue_events_url":"https://api.github.com/repos/u2i/confy/issues/events{/number}","events_url":"https://api.github.com/repos/u2i/confy/events","assignees_url":"https://api.github.com/repos/u2i/confy/assignees{/user}","branches_url":"https://api.github.com/repos/u2i/confy/branches{/branch}","tags_url":"https://api.github.com/repos/u2i/confy/tags","blobs_url":"https://api.github.com/repos/u2i/confy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/u2i/confy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/u2i/confy/git/refs{/sha}","trees_url":"https://api.github.com/repos/u2i/confy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/u2i/confy/statuses/{sha}","languages_url":"https://api.github.com/repos/u2i/confy/languages","stargazers_url":"https://api.github.com/repos/u2i/confy/stargazers","contributors_url":"https://api.github.com/repos/u2i/confy/contributors","subscribers_url":"https://api.github.com/repos/u2i/confy/subscribers","subscription_url":"https://api.github.com/repos/u2i/confy/subscription","commits_url":"https://api.github.com/repos/u2i/confy/commits{/sha}","git_commits_url":"https://api.github.com/repos/u2i/confy/git/commits{/sha}","comments_url":"https://api.github.com/repos/u2i/confy/comments{/number}","issue_comment_url":"https://api.github.com/repos/u2i/confy/issues/comments{/number}","contents_url":"https://api.github.com/repos/u2i/confy/contents/{+path}","compare_url":"https://api.github.com/repos/u2i/confy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/u2i/confy/merges","archive_url":"https://api.github.com/repos/u2i/confy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/u2i/confy/downloads","issues_url":"https://api.github.com/repos/u2i/confy/issues{/number}","pulls_url":"https://api.github.com/repos/u2i/confy/pulls{/number}","milestones_url":"https://api.github.com/repos/u2i/confy/milestones{/number}","notifications_url":"https://api.github.com/repos/u2i/confy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/u2i/confy/labels{/name}","releases_url":"https://api.github.com/repos/u2i/confy/releases{/id}","deployments_url":"https://api.github.com/repos/u2i/confy/deployments","created_at":"2016-07-04T12:23:19Z","updated_at":"2016-07-04T13:24:19Z","pushed_at":"2016-07-08T09:13:47Z","git_url":"git://github.com/u2i/confy.git","ssh_url":"git@github.com:u2i/confy.git","clone_url":"https://github.com/u2i/confy.git","svn_url":"https://github.com/u2i/confy","homepage":null,"size":108,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/u2i/confy/pulls/14"},"html":{"href":"https://github.com/u2i/confy/pull/14"},"issue":{"href":"https://api.github.com/repos/u2i/confy/issues/14"},"comments":{"href":"https://api.github.com/repos/u2i/confy/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/u2i/confy/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/u2i/confy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/u2i/confy/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/u2i/confy/statuses/6a5a1dfabf4922319a373b705d4250b7f0d9d731"}}}}
{"actor":{"display_login":"pbzymek"}}