{"action":"created","comment":{"url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/comments/47033783","id":47033783,"diff_hunk":"@@ -2,11 +2,47 @@\n require 'matrix'\n \n RSpec.describe Board, type: :model do\n-  describe 'new board' do\n-    let(:matrix) { Matrix.build(3) { '_'} }\n-    context do\n-      b = Board.new\n+  let(:matrix) { Matrix.build(3) { '_'} }\n+  let(:x)      { 0 }\n+  let(:y)      { 0 }\n+  let(:matrix_marked) { Matrix.rows([['x','_','_'],['_','_','_'],['_','_','_']]).to_a }\n+  let(:matrix_full) { Matrix.rows([['x','o','x'],['o','o','x'],['x','o','o']]).to_a }\n+  let(:matrix_winning) { Matrix.rows([['x','o','x'],['x','x','o'],['x','o','x']]).to_a }\n+\n+  describe 'board' do\n+    b = Board.new\n+    context 'new' do\n       it { expect(b.matrix).to eq matrix }\n     end\n+\n+    context 'mark' do\n+      before { b.mark(x, y, 'x') }\n+      it { expect(b.matrix).to eq Board.new(matrix_marked).matrix }\n+    end\n+\n+    context 'not finished' do\n+      it {\n+        finished = b.finished?('x')\n+        expect(finished).to eq false\n+      }\n+    end\n+\n+    context 'finished' do","path":"spec/models/board_spec.rb","position":33,"original_position":33,"commit_id":"54371b06dd2767ad0ace43dccbad236525f1086a","original_commit_id":"54371b06dd2767ad0ace43dccbad236525f1086a","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-12-08T23:56:33Z","updated_at":"2015-12-08T23:56:33Z","html_url":"https://github.com/BastienBabar/tictactoe/pull/1#discussion_r47033783","pull_request_url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/comments/47033783"},"html":{"href":"https://github.com/BastienBabar/tictactoe/pull/1#discussion_r47033783"},"pull_request":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/1","id":53057776,"html_url":"https://github.com/BastienBabar/tictactoe/pull/1","diff_url":"https://github.com/BastienBabar/tictactoe/pull/1.diff","patch_url":"https://github.com/BastienBabar/tictactoe/pull/1.patch","issue_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues/1","number":1,"state":"open","locked":false,"title":"100% test coverage","user":{"login":"BastienBabar","id":11943951,"avatar_url":"https://avatars.githubusercontent.com/u/11943951?v=3","gravatar_id":"","url":"https://api.github.com/users/BastienBabar","html_url":"https://github.com/BastienBabar","followers_url":"https://api.github.com/users/BastienBabar/followers","following_url":"https://api.github.com/users/BastienBabar/following{/other_user}","gists_url":"https://api.github.com/users/BastienBabar/gists{/gist_id}","starred_url":"https://api.github.com/users/BastienBabar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BastienBabar/subscriptions","organizations_url":"https://api.github.com/users/BastienBabar/orgs","repos_url":"https://api.github.com/users/BastienBabar/repos","events_url":"https://api.github.com/users/BastienBabar/events{/privacy}","received_events_url":"https://api.github.com/users/BastienBabar/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-08T23:56:27Z","updated_at":"2015-12-08T23:56:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c61994bf46fd317d348e9c0166ab5b3fa8a21346","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/1/commits","review_comments_url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/1/comments","review_comment_url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues/1/comments","statuses_url":"https://api.github.com/repos/BastienBabar/tictactoe/statuses/54371b06dd2767ad0ace43dccbad236525f1086a","head":{"label":"BastienBabar:test_coverage","ref":"test_coverage","sha":"54371b06dd2767ad0ace43dccbad236525f1086a","user":{"login":"BastienBabar","id":11943951,"avatar_url":"https://avatars.githubusercontent.com/u/11943951?v=3","gravatar_id":"","url":"https://api.github.com/users/BastienBabar","html_url":"https://github.com/BastienBabar","followers_url":"https://api.github.com/users/BastienBabar/followers","following_url":"https://api.github.com/users/BastienBabar/following{/other_user}","gists_url":"https://api.github.com/users/BastienBabar/gists{/gist_id}","starred_url":"https://api.github.com/users/BastienBabar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BastienBabar/subscriptions","organizations_url":"https://api.github.com/users/BastienBabar/orgs","repos_url":"https://api.github.com/users/BastienBabar/repos","events_url":"https://api.github.com/users/BastienBabar/events{/privacy}","received_events_url":"https://api.github.com/users/BastienBabar/received_events","type":"User","site_admin":false},"repo":{"id":47369855,"name":"tictactoe","full_name":"BastienBabar/tictactoe","owner":{"login":"BastienBabar","id":11943951,"avatar_url":"https://avatars.githubusercontent.com/u/11943951?v=3","gravatar_id":"","url":"https://api.github.com/users/BastienBabar","html_url":"https://github.com/BastienBabar","followers_url":"https://api.github.com/users/BastienBabar/followers","following_url":"https://api.github.com/users/BastienBabar/following{/other_user}","gists_url":"https://api.github.com/users/BastienBabar/gists{/gist_id}","starred_url":"https://api.github.com/users/BastienBabar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BastienBabar/subscriptions","organizations_url":"https://api.github.com/users/BastienBabar/orgs","repos_url":"https://api.github.com/users/BastienBabar/repos","events_url":"https://api.github.com/users/BastienBabar/events{/privacy}","received_events_url":"https://api.github.com/users/BastienBabar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BastienBabar/tictactoe","description":"Simple tictactoe game","fork":false,"url":"https://api.github.com/repos/BastienBabar/tictactoe","forks_url":"https://api.github.com/repos/BastienBabar/tictactoe/forks","keys_url":"https://api.github.com/repos/BastienBabar/tictactoe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BastienBabar/tictactoe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BastienBabar/tictactoe/teams","hooks_url":"https://api.github.com/repos/BastienBabar/tictactoe/hooks","issue_events_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues/events{/number}","events_url":"https://api.github.com/repos/BastienBabar/tictactoe/events","assignees_url":"https://api.github.com/repos/BastienBabar/tictactoe/assignees{/user}","branches_url":"https://api.github.com/repos/BastienBabar/tictactoe/branches{/branch}","tags_url":"https://api.github.com/repos/BastienBabar/tictactoe/tags","blobs_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/refs{/sha}","trees_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BastienBabar/tictactoe/statuses/{sha}","languages_url":"https://api.github.com/repos/BastienBabar/tictactoe/languages","stargazers_url":"https://api.github.com/repos/BastienBabar/tictactoe/stargazers","contributors_url":"https://api.github.com/repos/BastienBabar/tictactoe/contributors","subscribers_url":"https://api.github.com/repos/BastienBabar/tictactoe/subscribers","subscription_url":"https://api.github.com/repos/BastienBabar/tictactoe/subscription","commits_url":"https://api.github.com/repos/BastienBabar/tictactoe/commits{/sha}","git_commits_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/commits{/sha}","comments_url":"https://api.github.com/repos/BastienBabar/tictactoe/comments{/number}","issue_comment_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues/comments{/number}","contents_url":"https://api.github.com/repos/BastienBabar/tictactoe/contents/{+path}","compare_url":"https://api.github.com/repos/BastienBabar/tictactoe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BastienBabar/tictactoe/merges","archive_url":"https://api.github.com/repos/BastienBabar/tictactoe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BastienBabar/tictactoe/downloads","issues_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues{/number}","pulls_url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls{/number}","milestones_url":"https://api.github.com/repos/BastienBabar/tictactoe/milestones{/number}","notifications_url":"https://api.github.com/repos/BastienBabar/tictactoe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BastienBabar/tictactoe/labels{/name}","releases_url":"https://api.github.com/repos/BastienBabar/tictactoe/releases{/id}","created_at":"2015-12-04T00:24:51Z","updated_at":"2015-12-06T13:28:08Z","pushed_at":"2015-12-08T23:56:27Z","git_url":"git://github.com/BastienBabar/tictactoe.git","ssh_url":"git@github.com:BastienBabar/tictactoe.git","clone_url":"https://github.com/BastienBabar/tictactoe.git","svn_url":"https://github.com/BastienBabar/tictactoe","homepage":null,"size":38,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"BastienBabar:master","ref":"master","sha":"6fb951c5c6d977a2a28cba424fdaeaa5d1ee79bb","user":{"login":"BastienBabar","id":11943951,"avatar_url":"https://avatars.githubusercontent.com/u/11943951?v=3","gravatar_id":"","url":"https://api.github.com/users/BastienBabar","html_url":"https://github.com/BastienBabar","followers_url":"https://api.github.com/users/BastienBabar/followers","following_url":"https://api.github.com/users/BastienBabar/following{/other_user}","gists_url":"https://api.github.com/users/BastienBabar/gists{/gist_id}","starred_url":"https://api.github.com/users/BastienBabar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BastienBabar/subscriptions","organizations_url":"https://api.github.com/users/BastienBabar/orgs","repos_url":"https://api.github.com/users/BastienBabar/repos","events_url":"https://api.github.com/users/BastienBabar/events{/privacy}","received_events_url":"https://api.github.com/users/BastienBabar/received_events","type":"User","site_admin":false},"repo":{"id":47369855,"name":"tictactoe","full_name":"BastienBabar/tictactoe","owner":{"login":"BastienBabar","id":11943951,"avatar_url":"https://avatars.githubusercontent.com/u/11943951?v=3","gravatar_id":"","url":"https://api.github.com/users/BastienBabar","html_url":"https://github.com/BastienBabar","followers_url":"https://api.github.com/users/BastienBabar/followers","following_url":"https://api.github.com/users/BastienBabar/following{/other_user}","gists_url":"https://api.github.com/users/BastienBabar/gists{/gist_id}","starred_url":"https://api.github.com/users/BastienBabar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BastienBabar/subscriptions","organizations_url":"https://api.github.com/users/BastienBabar/orgs","repos_url":"https://api.github.com/users/BastienBabar/repos","events_url":"https://api.github.com/users/BastienBabar/events{/privacy}","received_events_url":"https://api.github.com/users/BastienBabar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BastienBabar/tictactoe","description":"Simple tictactoe game","fork":false,"url":"https://api.github.com/repos/BastienBabar/tictactoe","forks_url":"https://api.github.com/repos/BastienBabar/tictactoe/forks","keys_url":"https://api.github.com/repos/BastienBabar/tictactoe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BastienBabar/tictactoe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BastienBabar/tictactoe/teams","hooks_url":"https://api.github.com/repos/BastienBabar/tictactoe/hooks","issue_events_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues/events{/number}","events_url":"https://api.github.com/repos/BastienBabar/tictactoe/events","assignees_url":"https://api.github.com/repos/BastienBabar/tictactoe/assignees{/user}","branches_url":"https://api.github.com/repos/BastienBabar/tictactoe/branches{/branch}","tags_url":"https://api.github.com/repos/BastienBabar/tictactoe/tags","blobs_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/refs{/sha}","trees_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BastienBabar/tictactoe/statuses/{sha}","languages_url":"https://api.github.com/repos/BastienBabar/tictactoe/languages","stargazers_url":"https://api.github.com/repos/BastienBabar/tictactoe/stargazers","contributors_url":"https://api.github.com/repos/BastienBabar/tictactoe/contributors","subscribers_url":"https://api.github.com/repos/BastienBabar/tictactoe/subscribers","subscription_url":"https://api.github.com/repos/BastienBabar/tictactoe/subscription","commits_url":"https://api.github.com/repos/BastienBabar/tictactoe/commits{/sha}","git_commits_url":"https://api.github.com/repos/BastienBabar/tictactoe/git/commits{/sha}","comments_url":"https://api.github.com/repos/BastienBabar/tictactoe/comments{/number}","issue_comment_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues/comments{/number}","contents_url":"https://api.github.com/repos/BastienBabar/tictactoe/contents/{+path}","compare_url":"https://api.github.com/repos/BastienBabar/tictactoe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BastienBabar/tictactoe/merges","archive_url":"https://api.github.com/repos/BastienBabar/tictactoe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BastienBabar/tictactoe/downloads","issues_url":"https://api.github.com/repos/BastienBabar/tictactoe/issues{/number}","pulls_url":"https://api.github.com/repos/BastienBabar/tictactoe/pulls{/number}","milestones_url":"https://api.github.com/repos/BastienBabar/tictactoe/milestones{/number}","notifications_url":"https://api.github.com/repos/BastienBabar/tictactoe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BastienBabar/tictactoe/labels{/name}","releases_url":"https://api.github.com/repos/BastienBabar/tictactoe/releases{/id}","created_at":"2015-12-04T00:24:51Z","updated_at":"2015-12-06T13:28:08Z","pushed_at":"2015-12-08T23:56:27Z","git_url":"git://github.com/BastienBabar/tictactoe.git","ssh_url":"git@github.com:BastienBabar/tictactoe.git","clone_url":"https://github.com/BastienBabar/tictactoe.git","svn_url":"https://github.com/BastienBabar/tictactoe","homepage":null,"size":38,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/1"},"html":{"href":"https://github.com/BastienBabar/tictactoe/pull/1"},"issue":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/issues/1"},"comments":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/BastienBabar/tictactoe/statuses/54371b06dd2767ad0ace43dccbad236525f1086a"}}}}