{"action":"created","comment":{"url":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls/comments/79554713","id":79554713,"diff_hunk":"@@ -0,0 +1,29 @@\n+require 'rails_helper'\n+\n+RSpec.describe Piece, type: :model do\n+  describe 'is_obstructed?' do\n+    it 'should detect an obstructing piece horizontally' do\n+      game = Game.create\n+      piece = Piece.create(game_id: game.id, x_position: 0, y_position: 0)\n+      Piece.create(game_id: game.id, x_position: 3, y_position: 0)","path":"spec/models/piece_spec.rb","position":8,"original_position":8,"commit_id":"ab46a23a126b3bcae4c6e3a0e151bd41687a4034","original_commit_id":"ab46a23a126b3bcae4c6e3a0e151bd41687a4034","user":{"login":"lasley","id":7397578,"avatar_url":"https://avatars.githubusercontent.com/u/7397578?v=3","gravatar_id":"","url":"https://api.github.com/users/lasley","html_url":"https://github.com/lasley","followers_url":"https://api.github.com/users/lasley/followers","following_url":"https://api.github.com/users/lasley/following{/other_user}","gists_url":"https://api.github.com/users/lasley/gists{/gist_id}","starred_url":"https://api.github.com/users/lasley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasley/subscriptions","organizations_url":"https://api.github.com/users/lasley/orgs","repos_url":"https://api.github.com/users/lasley/repos","events_url":"https://api.github.com/users/lasley/events{/privacy}","received_events_url":"https://api.github.com/users/lasley/received_events","type":"User","site_admin":false},"body":"This create should be in a before or a let statement in order to DRY","created_at":"2016-09-20T08:01:47Z","updated_at":"2016-09-20T08:09:00Z","html_url":"https://github.com/teamdeepblue/caissa-chess/pull/27#discussion_r79554713","pull_request_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls/comments/79554713"},"html":{"href":"https://github.com/teamdeepblue/caissa-chess/pull/27#discussion_r79554713"},"pull_request":{"href":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls/27","id":85713801,"html_url":"https://github.com/teamdeepblue/caissa-chess/pull/27","diff_url":"https://github.com/teamdeepblue/caissa-chess/pull/27.diff","patch_url":"https://github.com/teamdeepblue/caissa-chess/pull/27.patch","issue_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/issues/27","number":27,"state":"open","locked":false,"title":"Isobstructed","user":{"login":"erniejamison","id":16594709,"avatar_url":"https://avatars.githubusercontent.com/u/16594709?v=3","gravatar_id":"","url":"https://api.github.com/users/erniejamison","html_url":"https://github.com/erniejamison","followers_url":"https://api.github.com/users/erniejamison/followers","following_url":"https://api.github.com/users/erniejamison/following{/other_user}","gists_url":"https://api.github.com/users/erniejamison/gists{/gist_id}","starred_url":"https://api.github.com/users/erniejamison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erniejamison/subscriptions","organizations_url":"https://api.github.com/users/erniejamison/orgs","repos_url":"https://api.github.com/users/erniejamison/repos","events_url":"https://api.github.com/users/erniejamison/events{/privacy}","received_events_url":"https://api.github.com/users/erniejamison/received_events","type":"User","site_admin":false},"body":"This is close but needs to be looked over. Instead of just returning true or false thethere is a method that returns an array of obstructing pieces. By convention a Ruby method ending with a '?' returns true or false so I separated it and called #obstructing_pieces with it. More tests will be added.","created_at":"2016-09-18T15:43:02Z","updated_at":"2016-09-20T08:09:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"641acef6f9e3154b6bf13e3189c5362810009612","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls/27/commits","review_comments_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls/27/comments","review_comment_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/issues/27/comments","statuses_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/statuses/ab46a23a126b3bcae4c6e3a0e151bd41687a4034","head":{"label":"teamdeepblue:isobstructed","ref":"isobstructed","sha":"ab46a23a126b3bcae4c6e3a0e151bd41687a4034","user":{"login":"teamdeepblue","id":21270477,"avatar_url":"https://avatars.githubusercontent.com/u/21270477?v=3","gravatar_id":"","url":"https://api.github.com/users/teamdeepblue","html_url":"https://github.com/teamdeepblue","followers_url":"https://api.github.com/users/teamdeepblue/followers","following_url":"https://api.github.com/users/teamdeepblue/following{/other_user}","gists_url":"https://api.github.com/users/teamdeepblue/gists{/gist_id}","starred_url":"https://api.github.com/users/teamdeepblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamdeepblue/subscriptions","organizations_url":"https://api.github.com/users/teamdeepblue/orgs","repos_url":"https://api.github.com/users/teamdeepblue/repos","events_url":"https://api.github.com/users/teamdeepblue/events{/privacy}","received_events_url":"https://api.github.com/users/teamdeepblue/received_events","type":"Organization","site_admin":false},"repo":{"id":66887734,"name":"caissa-chess","full_name":"teamdeepblue/caissa-chess","owner":{"login":"teamdeepblue","id":21270477,"avatar_url":"https://avatars.githubusercontent.com/u/21270477?v=3","gravatar_id":"","url":"https://api.github.com/users/teamdeepblue","html_url":"https://github.com/teamdeepblue","followers_url":"https://api.github.com/users/teamdeepblue/followers","following_url":"https://api.github.com/users/teamdeepblue/following{/other_user}","gists_url":"https://api.github.com/users/teamdeepblue/gists{/gist_id}","starred_url":"https://api.github.com/users/teamdeepblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamdeepblue/subscriptions","organizations_url":"https://api.github.com/users/teamdeepblue/orgs","repos_url":"https://api.github.com/users/teamdeepblue/repos","events_url":"https://api.github.com/users/teamdeepblue/events{/privacy}","received_events_url":"https://api.github.com/users/teamdeepblue/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamdeepblue/caissa-chess","description":null,"fork":false,"url":"https://api.github.com/repos/teamdeepblue/caissa-chess","forks_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/forks","keys_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/teams","hooks_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/hooks","issue_events_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/issues/events{/number}","events_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/events","assignees_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/assignees{/user}","branches_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/branches{/branch}","tags_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/tags","blobs_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/statuses/{sha}","languages_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/languages","stargazers_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/stargazers","contributors_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/contributors","subscribers_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/subscribers","subscription_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/subscription","commits_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/contents/{+path}","compare_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/merges","archive_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/downloads","issues_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/issues{/number}","pulls_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls{/number}","milestones_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/milestones{/number}","notifications_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/labels{/name}","releases_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/releases{/id}","deployments_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/deployments","created_at":"2016-08-29T23:15:26Z","updated_at":"2016-08-29T23:16:10Z","pushed_at":"2016-09-20T07:53:43Z","git_url":"git://github.com/teamdeepblue/caissa-chess.git","ssh_url":"git@github.com:teamdeepblue/caissa-chess.git","clone_url":"https://github.com/teamdeepblue/caissa-chess.git","svn_url":"https://github.com/teamdeepblue/caissa-chess","homepage":null,"size":172,"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":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"teamdeepblue:master","ref":"master","sha":"17858524309bdcd8f604ff5b1e0de14df153e97e","user":{"login":"teamdeepblue","id":21270477,"avatar_url":"https://avatars.githubusercontent.com/u/21270477?v=3","gravatar_id":"","url":"https://api.github.com/users/teamdeepblue","html_url":"https://github.com/teamdeepblue","followers_url":"https://api.github.com/users/teamdeepblue/followers","following_url":"https://api.github.com/users/teamdeepblue/following{/other_user}","gists_url":"https://api.github.com/users/teamdeepblue/gists{/gist_id}","starred_url":"https://api.github.com/users/teamdeepblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamdeepblue/subscriptions","organizations_url":"https://api.github.com/users/teamdeepblue/orgs","repos_url":"https://api.github.com/users/teamdeepblue/repos","events_url":"https://api.github.com/users/teamdeepblue/events{/privacy}","received_events_url":"https://api.github.com/users/teamdeepblue/received_events","type":"Organization","site_admin":false},"repo":{"id":66887734,"name":"caissa-chess","full_name":"teamdeepblue/caissa-chess","owner":{"login":"teamdeepblue","id":21270477,"avatar_url":"https://avatars.githubusercontent.com/u/21270477?v=3","gravatar_id":"","url":"https://api.github.com/users/teamdeepblue","html_url":"https://github.com/teamdeepblue","followers_url":"https://api.github.com/users/teamdeepblue/followers","following_url":"https://api.github.com/users/teamdeepblue/following{/other_user}","gists_url":"https://api.github.com/users/teamdeepblue/gists{/gist_id}","starred_url":"https://api.github.com/users/teamdeepblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamdeepblue/subscriptions","organizations_url":"https://api.github.com/users/teamdeepblue/orgs","repos_url":"https://api.github.com/users/teamdeepblue/repos","events_url":"https://api.github.com/users/teamdeepblue/events{/privacy}","received_events_url":"https://api.github.com/users/teamdeepblue/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamdeepblue/caissa-chess","description":null,"fork":false,"url":"https://api.github.com/repos/teamdeepblue/caissa-chess","forks_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/forks","keys_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/teams","hooks_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/hooks","issue_events_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/issues/events{/number}","events_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/events","assignees_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/assignees{/user}","branches_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/branches{/branch}","tags_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/tags","blobs_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/statuses/{sha}","languages_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/languages","stargazers_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/stargazers","contributors_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/contributors","subscribers_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/subscribers","subscription_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/subscription","commits_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/contents/{+path}","compare_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/merges","archive_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/downloads","issues_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/issues{/number}","pulls_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls{/number}","milestones_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/milestones{/number}","notifications_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/labels{/name}","releases_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/releases{/id}","deployments_url":"https://api.github.com/repos/teamdeepblue/caissa-chess/deployments","created_at":"2016-08-29T23:15:26Z","updated_at":"2016-08-29T23:16:10Z","pushed_at":"2016-09-20T07:53:43Z","git_url":"git://github.com/teamdeepblue/caissa-chess.git","ssh_url":"git@github.com:teamdeepblue/caissa-chess.git","clone_url":"https://github.com/teamdeepblue/caissa-chess.git","svn_url":"https://github.com/teamdeepblue/caissa-chess","homepage":null,"size":172,"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":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls/27"},"html":{"href":"https://github.com/teamdeepblue/caissa-chess/pull/27"},"issue":{"href":"https://api.github.com/repos/teamdeepblue/caissa-chess/issues/27"},"comments":{"href":"https://api.github.com/repos/teamdeepblue/caissa-chess/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teamdeepblue/caissa-chess/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/teamdeepblue/caissa-chess/statuses/ab46a23a126b3bcae4c6e3a0e151bd41687a4034"}}}}
{"actor":{"display_login":"lasley"}}