{"action":"created","comment":{"url":"https://api.github.com/repos/highwide/shibaph/pulls/comments/38816325","id":38816325,"diff_hunk":"@@ -0,0 +1,53 @@\n+require 'test_helper'\n+\n+class RangeProgressesTest < ActiveSupport::TestCase\n+  def setup\n+    start_date = '2015-08-21'.to_date\n+    end_date = Time.zone.today\n+    progress = daily_progresses :start_of_range_progresses\n+    @range_progresses = RangeProgresses.new(progress.practice.id, start_date, end_date)\n+  end\n+\n+  # FIXME: 2016/8/22以降このテストはfailする\n+  test '#format_each_week' do\n+    result = @range_progresses.format_each_week\n+    expectation1 = [\n+      '2015-08-21'.to_date, # 金曜\n+      '2015-08-22'.to_date  # 土曜","path":"test/models/range_progresses.rb","position":16,"original_position":16,"commit_id":"9094621927fccddef53c7f46dfc3bf9887832bd1","original_commit_id":"9094621927fccddef53c7f46dfc3bf9887832bd1","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":"Style/ExtraSpacing: Unnecessary spacing detected.","created_at":"2015-09-06T01:01:04Z","updated_at":"2015-09-06T01:01:04Z","html_url":"https://github.com/highwide/shibaph/pull/63#discussion_r38816325","pull_request_url":"https://api.github.com/repos/highwide/shibaph/pulls/63","_links":{"self":{"href":"https://api.github.com/repos/highwide/shibaph/pulls/comments/38816325"},"html":{"href":"https://github.com/highwide/shibaph/pull/63#discussion_r38816325"},"pull_request":{"href":"https://api.github.com/repos/highwide/shibaph/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/highwide/shibaph/pulls/63","id":44279836,"html_url":"https://github.com/highwide/shibaph/pull/63","diff_url":"https://github.com/highwide/shibaph/pull/63.diff","patch_url":"https://github.com/highwide/shibaph/pull/63.patch","issue_url":"https://api.github.com/repos/highwide/shibaph/issues/63","number":63,"state":"open","locked":false,"title":"[WIP]日々の進捗に応じてstreakなどを表示する","user":{"login":"highwide","id":1495423,"avatar_url":"https://avatars.githubusercontent.com/u/1495423?v=3","gravatar_id":"","url":"https://api.github.com/users/highwide","html_url":"https://github.com/highwide","followers_url":"https://api.github.com/users/highwide/followers","following_url":"https://api.github.com/users/highwide/following{/other_user}","gists_url":"https://api.github.com/users/highwide/gists{/gist_id}","starred_url":"https://api.github.com/users/highwide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highwide/subscriptions","organizations_url":"https://api.github.com/users/highwide/orgs","repos_url":"https://api.github.com/users/highwide/repos","events_url":"https://api.github.com/users/highwide/events{/privacy}","received_events_url":"https://api.github.com/users/highwide/received_events","type":"User","site_admin":false},"body":"streakなどを表示させるにあたり、「週ごとのHashのArray」っていう構造はつらかったので、RangeProgressesというclassを作りました。\r\nそこのメソッドとして、streakの計算を行うものなど生やしています。\r\n\r\n* [ ] テスト(~_~;)","created_at":"2015-09-05T09:31:26Z","updated_at":"2015-09-06T01:01:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c6fe000328241640bd4bc36a1bfb7f0bcb0f7b2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/highwide/shibaph/pulls/63/commits","review_comments_url":"https://api.github.com/repos/highwide/shibaph/pulls/63/comments","review_comment_url":"https://api.github.com/repos/highwide/shibaph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/highwide/shibaph/issues/63/comments","statuses_url":"https://api.github.com/repos/highwide/shibaph/statuses/9094621927fccddef53c7f46dfc3bf9887832bd1","head":{"label":"highwide:create-range-progresses","ref":"create-range-progresses","sha":"9094621927fccddef53c7f46dfc3bf9887832bd1","user":{"login":"highwide","id":1495423,"avatar_url":"https://avatars.githubusercontent.com/u/1495423?v=3","gravatar_id":"","url":"https://api.github.com/users/highwide","html_url":"https://github.com/highwide","followers_url":"https://api.github.com/users/highwide/followers","following_url":"https://api.github.com/users/highwide/following{/other_user}","gists_url":"https://api.github.com/users/highwide/gists{/gist_id}","starred_url":"https://api.github.com/users/highwide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highwide/subscriptions","organizations_url":"https://api.github.com/users/highwide/orgs","repos_url":"https://api.github.com/users/highwide/repos","events_url":"https://api.github.com/users/highwide/events{/privacy}","received_events_url":"https://api.github.com/users/highwide/received_events","type":"User","site_admin":false},"repo":{"id":36936079,"name":"shibaph","full_name":"highwide/shibaph","owner":{"login":"highwide","id":1495423,"avatar_url":"https://avatars.githubusercontent.com/u/1495423?v=3","gravatar_id":"","url":"https://api.github.com/users/highwide","html_url":"https://github.com/highwide","followers_url":"https://api.github.com/users/highwide/followers","following_url":"https://api.github.com/users/highwide/following{/other_user}","gists_url":"https://api.github.com/users/highwide/gists{/gist_id}","starred_url":"https://api.github.com/users/highwide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highwide/subscriptions","organizations_url":"https://api.github.com/users/highwide/orgs","repos_url":"https://api.github.com/users/highwide/repos","events_url":"https://api.github.com/users/highwide/events{/privacy}","received_events_url":"https://api.github.com/users/highwide/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/highwide/shibaph","description":"Shiba + Graph = Shibaph (しばふ)","fork":false,"url":"https://api.github.com/repos/highwide/shibaph","forks_url":"https://api.github.com/repos/highwide/shibaph/forks","keys_url":"https://api.github.com/repos/highwide/shibaph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/highwide/shibaph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/highwide/shibaph/teams","hooks_url":"https://api.github.com/repos/highwide/shibaph/hooks","issue_events_url":"https://api.github.com/repos/highwide/shibaph/issues/events{/number}","events_url":"https://api.github.com/repos/highwide/shibaph/events","assignees_url":"https://api.github.com/repos/highwide/shibaph/assignees{/user}","branches_url":"https://api.github.com/repos/highwide/shibaph/branches{/branch}","tags_url":"https://api.github.com/repos/highwide/shibaph/tags","blobs_url":"https://api.github.com/repos/highwide/shibaph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/highwide/shibaph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/highwide/shibaph/git/refs{/sha}","trees_url":"https://api.github.com/repos/highwide/shibaph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/highwide/shibaph/statuses/{sha}","languages_url":"https://api.github.com/repos/highwide/shibaph/languages","stargazers_url":"https://api.github.com/repos/highwide/shibaph/stargazers","contributors_url":"https://api.github.com/repos/highwide/shibaph/contributors","subscribers_url":"https://api.github.com/repos/highwide/shibaph/subscribers","subscription_url":"https://api.github.com/repos/highwide/shibaph/subscription","commits_url":"https://api.github.com/repos/highwide/shibaph/commits{/sha}","git_commits_url":"https://api.github.com/repos/highwide/shibaph/git/commits{/sha}","comments_url":"https://api.github.com/repos/highwide/shibaph/comments{/number}","issue_comment_url":"https://api.github.com/repos/highwide/shibaph/issues/comments{/number}","contents_url":"https://api.github.com/repos/highwide/shibaph/contents/{+path}","compare_url":"https://api.github.com/repos/highwide/shibaph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/highwide/shibaph/merges","archive_url":"https://api.github.com/repos/highwide/shibaph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/highwide/shibaph/downloads","issues_url":"https://api.github.com/repos/highwide/shibaph/issues{/number}","pulls_url":"https://api.github.com/repos/highwide/shibaph/pulls{/number}","milestones_url":"https://api.github.com/repos/highwide/shibaph/milestones{/number}","notifications_url":"https://api.github.com/repos/highwide/shibaph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/highwide/shibaph/labels{/name}","releases_url":"https://api.github.com/repos/highwide/shibaph/releases{/id}","created_at":"2015-06-05T14:07:38Z","updated_at":"2015-09-05T02:34:59Z","pushed_at":"2015-09-06T01:01:03Z","git_url":"git://github.com/highwide/shibaph.git","ssh_url":"git@github.com:highwide/shibaph.git","clone_url":"https://github.com/highwide/shibaph.git","svn_url":"https://github.com/highwide/shibaph","homepage":null,"size":656,"stargazers_count":6,"watchers_count":6,"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":6,"default_branch":"master"}},"base":{"label":"highwide:master","ref":"master","sha":"24e559d1ba6e44d71ed0a8f5e443fa9f6ab5c2ba","user":{"login":"highwide","id":1495423,"avatar_url":"https://avatars.githubusercontent.com/u/1495423?v=3","gravatar_id":"","url":"https://api.github.com/users/highwide","html_url":"https://github.com/highwide","followers_url":"https://api.github.com/users/highwide/followers","following_url":"https://api.github.com/users/highwide/following{/other_user}","gists_url":"https://api.github.com/users/highwide/gists{/gist_id}","starred_url":"https://api.github.com/users/highwide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highwide/subscriptions","organizations_url":"https://api.github.com/users/highwide/orgs","repos_url":"https://api.github.com/users/highwide/repos","events_url":"https://api.github.com/users/highwide/events{/privacy}","received_events_url":"https://api.github.com/users/highwide/received_events","type":"User","site_admin":false},"repo":{"id":36936079,"name":"shibaph","full_name":"highwide/shibaph","owner":{"login":"highwide","id":1495423,"avatar_url":"https://avatars.githubusercontent.com/u/1495423?v=3","gravatar_id":"","url":"https://api.github.com/users/highwide","html_url":"https://github.com/highwide","followers_url":"https://api.github.com/users/highwide/followers","following_url":"https://api.github.com/users/highwide/following{/other_user}","gists_url":"https://api.github.com/users/highwide/gists{/gist_id}","starred_url":"https://api.github.com/users/highwide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highwide/subscriptions","organizations_url":"https://api.github.com/users/highwide/orgs","repos_url":"https://api.github.com/users/highwide/repos","events_url":"https://api.github.com/users/highwide/events{/privacy}","received_events_url":"https://api.github.com/users/highwide/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/highwide/shibaph","description":"Shiba + Graph = Shibaph (しばふ)","fork":false,"url":"https://api.github.com/repos/highwide/shibaph","forks_url":"https://api.github.com/repos/highwide/shibaph/forks","keys_url":"https://api.github.com/repos/highwide/shibaph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/highwide/shibaph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/highwide/shibaph/teams","hooks_url":"https://api.github.com/repos/highwide/shibaph/hooks","issue_events_url":"https://api.github.com/repos/highwide/shibaph/issues/events{/number}","events_url":"https://api.github.com/repos/highwide/shibaph/events","assignees_url":"https://api.github.com/repos/highwide/shibaph/assignees{/user}","branches_url":"https://api.github.com/repos/highwide/shibaph/branches{/branch}","tags_url":"https://api.github.com/repos/highwide/shibaph/tags","blobs_url":"https://api.github.com/repos/highwide/shibaph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/highwide/shibaph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/highwide/shibaph/git/refs{/sha}","trees_url":"https://api.github.com/repos/highwide/shibaph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/highwide/shibaph/statuses/{sha}","languages_url":"https://api.github.com/repos/highwide/shibaph/languages","stargazers_url":"https://api.github.com/repos/highwide/shibaph/stargazers","contributors_url":"https://api.github.com/repos/highwide/shibaph/contributors","subscribers_url":"https://api.github.com/repos/highwide/shibaph/subscribers","subscription_url":"https://api.github.com/repos/highwide/shibaph/subscription","commits_url":"https://api.github.com/repos/highwide/shibaph/commits{/sha}","git_commits_url":"https://api.github.com/repos/highwide/shibaph/git/commits{/sha}","comments_url":"https://api.github.com/repos/highwide/shibaph/comments{/number}","issue_comment_url":"https://api.github.com/repos/highwide/shibaph/issues/comments{/number}","contents_url":"https://api.github.com/repos/highwide/shibaph/contents/{+path}","compare_url":"https://api.github.com/repos/highwide/shibaph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/highwide/shibaph/merges","archive_url":"https://api.github.com/repos/highwide/shibaph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/highwide/shibaph/downloads","issues_url":"https://api.github.com/repos/highwide/shibaph/issues{/number}","pulls_url":"https://api.github.com/repos/highwide/shibaph/pulls{/number}","milestones_url":"https://api.github.com/repos/highwide/shibaph/milestones{/number}","notifications_url":"https://api.github.com/repos/highwide/shibaph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/highwide/shibaph/labels{/name}","releases_url":"https://api.github.com/repos/highwide/shibaph/releases{/id}","created_at":"2015-06-05T14:07:38Z","updated_at":"2015-09-05T02:34:59Z","pushed_at":"2015-09-06T01:01:03Z","git_url":"git://github.com/highwide/shibaph.git","ssh_url":"git@github.com:highwide/shibaph.git","clone_url":"https://github.com/highwide/shibaph.git","svn_url":"https://github.com/highwide/shibaph","homepage":null,"size":656,"stargazers_count":6,"watchers_count":6,"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":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/highwide/shibaph/pulls/63"},"html":{"href":"https://github.com/highwide/shibaph/pull/63"},"issue":{"href":"https://api.github.com/repos/highwide/shibaph/issues/63"},"comments":{"href":"https://api.github.com/repos/highwide/shibaph/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/highwide/shibaph/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/highwide/shibaph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/highwide/shibaph/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/highwide/shibaph/statuses/9094621927fccddef53c7f46dfc3bf9887832bd1"}}}}