{"action":"created","comment":{"url":"https://api.github.com/repos/agileseason/agileseason/pulls/comments/28332376","id":28332376,"diff_hunk":"@@ -0,0 +1,107 @@\n+describe Graphs::ForecastBuilder do\n+  let(:builder) { Graphs::ForecastBuilder.new(board) }\n+\n+  describe '#categories' do\n+    subject { builder.categories }\n+    let(:board) { create(:board, :set_columns, names: ['To Do', 'Done']) }\n+\n+    it { is_expected.to have(2).items }\n+  end\n+\n+  describe '#series_forecast' do\n+    subject { builder.series_forecast }\n+    let(:board) { create(:board, :set_columns, names: ['To Do', 'Done']) }\n+\n+    context 'empty' do\n+      it { is_expected.to have(2).items }\n+      it { expect(subject.first[:issues]).to eq 0 }\n+      it { expect(subject.first[:y]).to eq 0.0 }\n+      it { expect(subject.last[:issues]).to eq 0 }\n+      it { expect(subject.last[:y]).to eq 0.0 }\n+   end","path":"spec/services/graphs/forecast_builder_spec.rb","position":21,"original_position":21,"commit_id":"83aba62eb90e6828611f894a9c1d936a7faf4a5c","original_commit_id":"83aba62eb90e6828611f894a9c1d936a7faf4a5c","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":"`end` at 21, 3 is not aligned with `context 'empty' do` at 15, 4","created_at":"2015-04-14T14:38:50Z","updated_at":"2015-04-14T14:38:50Z","html_url":"https://github.com/agileseason/agileseason/pull/280#discussion_r28332376","pull_request_url":"https://api.github.com/repos/agileseason/agileseason/pulls/280","_links":{"self":{"href":"https://api.github.com/repos/agileseason/agileseason/pulls/comments/28332376"},"html":{"href":"https://github.com/agileseason/agileseason/pull/280#discussion_r28332376"},"pull_request":{"href":"https://api.github.com/repos/agileseason/agileseason/pulls/280"}}},"pull_request":{"url":"https://api.github.com/repos/agileseason/agileseason/pulls/280","id":33263739,"html_url":"https://github.com/agileseason/agileseason/pull/280","diff_url":"https://github.com/agileseason/agileseason/pull/280.diff","patch_url":"https://github.com/agileseason/agileseason/pull/280.patch","issue_url":"https://api.github.com/repos/agileseason/agileseason/issues/280","number":280,"state":"open","locked":false,"title":"Feature/improve graphs","user":{"login":"blackchestnut","id":2400100,"avatar_url":"https://avatars.githubusercontent.com/u/2400100?v=3","gravatar_id":"","url":"https://api.github.com/users/blackchestnut","html_url":"https://github.com/blackchestnut","followers_url":"https://api.github.com/users/blackchestnut/followers","following_url":"https://api.github.com/users/blackchestnut/following{/other_user}","gists_url":"https://api.github.com/users/blackchestnut/gists{/gist_id}","starred_url":"https://api.github.com/users/blackchestnut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackchestnut/subscriptions","organizations_url":"https://api.github.com/users/blackchestnut/orgs","repos_url":"https://api.github.com/users/blackchestnut/repos","events_url":"https://api.github.com/users/blackchestnut/events{/privacy}","received_events_url":"https://api.github.com/users/blackchestnut/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-14T14:38:46Z","updated_at":"2015-04-14T14:38:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"610b312985828cc13639518c58ea74d5ccbb7987","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/agileseason/agileseason/pulls/280/commits","review_comments_url":"https://api.github.com/repos/agileseason/agileseason/pulls/280/comments","review_comment_url":"https://api.github.com/repos/agileseason/agileseason/pulls/comments{/number}","comments_url":"https://api.github.com/repos/agileseason/agileseason/issues/280/comments","statuses_url":"https://api.github.com/repos/agileseason/agileseason/statuses/83aba62eb90e6828611f894a9c1d936a7faf4a5c","head":{"label":"agileseason:feature/improve_graphs","ref":"feature/improve_graphs","sha":"83aba62eb90e6828611f894a9c1d936a7faf4a5c","user":{"login":"agileseason","id":9547438,"avatar_url":"https://avatars.githubusercontent.com/u/9547438?v=3","gravatar_id":"","url":"https://api.github.com/users/agileseason","html_url":"https://github.com/agileseason","followers_url":"https://api.github.com/users/agileseason/followers","following_url":"https://api.github.com/users/agileseason/following{/other_user}","gists_url":"https://api.github.com/users/agileseason/gists{/gist_id}","starred_url":"https://api.github.com/users/agileseason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agileseason/subscriptions","organizations_url":"https://api.github.com/users/agileseason/orgs","repos_url":"https://api.github.com/users/agileseason/repos","events_url":"https://api.github.com/users/agileseason/events{/privacy}","received_events_url":"https://api.github.com/users/agileseason/received_events","type":"Organization","site_admin":false},"repo":{"id":26205980,"name":"agileseason","full_name":"agileseason/agileseason","owner":{"login":"agileseason","id":9547438,"avatar_url":"https://avatars.githubusercontent.com/u/9547438?v=3","gravatar_id":"","url":"https://api.github.com/users/agileseason","html_url":"https://github.com/agileseason","followers_url":"https://api.github.com/users/agileseason/followers","following_url":"https://api.github.com/users/agileseason/following{/other_user}","gists_url":"https://api.github.com/users/agileseason/gists{/gist_id}","starred_url":"https://api.github.com/users/agileseason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agileseason/subscriptions","organizations_url":"https://api.github.com/users/agileseason/orgs","repos_url":"https://api.github.com/users/agileseason/repos","events_url":"https://api.github.com/users/agileseason/events{/privacy}","received_events_url":"https://api.github.com/users/agileseason/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/agileseason/agileseason","description":"Agile board with management stats for github issues","fork":false,"url":"https://api.github.com/repos/agileseason/agileseason","forks_url":"https://api.github.com/repos/agileseason/agileseason/forks","keys_url":"https://api.github.com/repos/agileseason/agileseason/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agileseason/agileseason/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agileseason/agileseason/teams","hooks_url":"https://api.github.com/repos/agileseason/agileseason/hooks","issue_events_url":"https://api.github.com/repos/agileseason/agileseason/issues/events{/number}","events_url":"https://api.github.com/repos/agileseason/agileseason/events","assignees_url":"https://api.github.com/repos/agileseason/agileseason/assignees{/user}","branches_url":"https://api.github.com/repos/agileseason/agileseason/branches{/branch}","tags_url":"https://api.github.com/repos/agileseason/agileseason/tags","blobs_url":"https://api.github.com/repos/agileseason/agileseason/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agileseason/agileseason/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agileseason/agileseason/git/refs{/sha}","trees_url":"https://api.github.com/repos/agileseason/agileseason/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agileseason/agileseason/statuses/{sha}","languages_url":"https://api.github.com/repos/agileseason/agileseason/languages","stargazers_url":"https://api.github.com/repos/agileseason/agileseason/stargazers","contributors_url":"https://api.github.com/repos/agileseason/agileseason/contributors","subscribers_url":"https://api.github.com/repos/agileseason/agileseason/subscribers","subscription_url":"https://api.github.com/repos/agileseason/agileseason/subscription","commits_url":"https://api.github.com/repos/agileseason/agileseason/commits{/sha}","git_commits_url":"https://api.github.com/repos/agileseason/agileseason/git/commits{/sha}","comments_url":"https://api.github.com/repos/agileseason/agileseason/comments{/number}","issue_comment_url":"https://api.github.com/repos/agileseason/agileseason/issues/comments{/number}","contents_url":"https://api.github.com/repos/agileseason/agileseason/contents/{+path}","compare_url":"https://api.github.com/repos/agileseason/agileseason/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agileseason/agileseason/merges","archive_url":"https://api.github.com/repos/agileseason/agileseason/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agileseason/agileseason/downloads","issues_url":"https://api.github.com/repos/agileseason/agileseason/issues{/number}","pulls_url":"https://api.github.com/repos/agileseason/agileseason/pulls{/number}","milestones_url":"https://api.github.com/repos/agileseason/agileseason/milestones{/number}","notifications_url":"https://api.github.com/repos/agileseason/agileseason/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agileseason/agileseason/labels{/name}","releases_url":"https://api.github.com/repos/agileseason/agileseason/releases{/id}","created_at":"2014-11-05T06:11:09Z","updated_at":"2015-04-13T17:16:04Z","pushed_at":"2015-04-14T14:38:46Z","git_url":"git://github.com/agileseason/agileseason.git","ssh_url":"git@github.com:agileseason/agileseason.git","clone_url":"https://github.com/agileseason/agileseason.git","svn_url":"https://github.com/agileseason/agileseason","homepage":"http://agileseason.com","size":5444,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":3,"default_branch":"master"}},"base":{"label":"agileseason:master","ref":"master","sha":"48e41fa0ad705c66e144001d8a50cdff813d79b5","user":{"login":"agileseason","id":9547438,"avatar_url":"https://avatars.githubusercontent.com/u/9547438?v=3","gravatar_id":"","url":"https://api.github.com/users/agileseason","html_url":"https://github.com/agileseason","followers_url":"https://api.github.com/users/agileseason/followers","following_url":"https://api.github.com/users/agileseason/following{/other_user}","gists_url":"https://api.github.com/users/agileseason/gists{/gist_id}","starred_url":"https://api.github.com/users/agileseason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agileseason/subscriptions","organizations_url":"https://api.github.com/users/agileseason/orgs","repos_url":"https://api.github.com/users/agileseason/repos","events_url":"https://api.github.com/users/agileseason/events{/privacy}","received_events_url":"https://api.github.com/users/agileseason/received_events","type":"Organization","site_admin":false},"repo":{"id":26205980,"name":"agileseason","full_name":"agileseason/agileseason","owner":{"login":"agileseason","id":9547438,"avatar_url":"https://avatars.githubusercontent.com/u/9547438?v=3","gravatar_id":"","url":"https://api.github.com/users/agileseason","html_url":"https://github.com/agileseason","followers_url":"https://api.github.com/users/agileseason/followers","following_url":"https://api.github.com/users/agileseason/following{/other_user}","gists_url":"https://api.github.com/users/agileseason/gists{/gist_id}","starred_url":"https://api.github.com/users/agileseason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agileseason/subscriptions","organizations_url":"https://api.github.com/users/agileseason/orgs","repos_url":"https://api.github.com/users/agileseason/repos","events_url":"https://api.github.com/users/agileseason/events{/privacy}","received_events_url":"https://api.github.com/users/agileseason/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/agileseason/agileseason","description":"Agile board with management stats for github issues","fork":false,"url":"https://api.github.com/repos/agileseason/agileseason","forks_url":"https://api.github.com/repos/agileseason/agileseason/forks","keys_url":"https://api.github.com/repos/agileseason/agileseason/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agileseason/agileseason/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agileseason/agileseason/teams","hooks_url":"https://api.github.com/repos/agileseason/agileseason/hooks","issue_events_url":"https://api.github.com/repos/agileseason/agileseason/issues/events{/number}","events_url":"https://api.github.com/repos/agileseason/agileseason/events","assignees_url":"https://api.github.com/repos/agileseason/agileseason/assignees{/user}","branches_url":"https://api.github.com/repos/agileseason/agileseason/branches{/branch}","tags_url":"https://api.github.com/repos/agileseason/agileseason/tags","blobs_url":"https://api.github.com/repos/agileseason/agileseason/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agileseason/agileseason/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agileseason/agileseason/git/refs{/sha}","trees_url":"https://api.github.com/repos/agileseason/agileseason/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agileseason/agileseason/statuses/{sha}","languages_url":"https://api.github.com/repos/agileseason/agileseason/languages","stargazers_url":"https://api.github.com/repos/agileseason/agileseason/stargazers","contributors_url":"https://api.github.com/repos/agileseason/agileseason/contributors","subscribers_url":"https://api.github.com/repos/agileseason/agileseason/subscribers","subscription_url":"https://api.github.com/repos/agileseason/agileseason/subscription","commits_url":"https://api.github.com/repos/agileseason/agileseason/commits{/sha}","git_commits_url":"https://api.github.com/repos/agileseason/agileseason/git/commits{/sha}","comments_url":"https://api.github.com/repos/agileseason/agileseason/comments{/number}","issue_comment_url":"https://api.github.com/repos/agileseason/agileseason/issues/comments{/number}","contents_url":"https://api.github.com/repos/agileseason/agileseason/contents/{+path}","compare_url":"https://api.github.com/repos/agileseason/agileseason/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agileseason/agileseason/merges","archive_url":"https://api.github.com/repos/agileseason/agileseason/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agileseason/agileseason/downloads","issues_url":"https://api.github.com/repos/agileseason/agileseason/issues{/number}","pulls_url":"https://api.github.com/repos/agileseason/agileseason/pulls{/number}","milestones_url":"https://api.github.com/repos/agileseason/agileseason/milestones{/number}","notifications_url":"https://api.github.com/repos/agileseason/agileseason/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agileseason/agileseason/labels{/name}","releases_url":"https://api.github.com/repos/agileseason/agileseason/releases{/id}","created_at":"2014-11-05T06:11:09Z","updated_at":"2015-04-13T17:16:04Z","pushed_at":"2015-04-14T14:38:46Z","git_url":"git://github.com/agileseason/agileseason.git","ssh_url":"git@github.com:agileseason/agileseason.git","clone_url":"https://github.com/agileseason/agileseason.git","svn_url":"https://github.com/agileseason/agileseason","homepage":"http://agileseason.com","size":5444,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/agileseason/agileseason/pulls/280"},"html":{"href":"https://github.com/agileseason/agileseason/pull/280"},"issue":{"href":"https://api.github.com/repos/agileseason/agileseason/issues/280"},"comments":{"href":"https://api.github.com/repos/agileseason/agileseason/issues/280/comments"},"review_comments":{"href":"https://api.github.com/repos/agileseason/agileseason/pulls/280/comments"},"review_comment":{"href":"https://api.github.com/repos/agileseason/agileseason/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/agileseason/agileseason/pulls/280/commits"},"statuses":{"href":"https://api.github.com/repos/agileseason/agileseason/statuses/83aba62eb90e6828611f894a9c1d936a7faf4a5c"}}}}