{"action":"created","comment":{"url":"https://api.github.com/repos/bethsebian/apocalypsify/pulls/comments/50419251","id":50419251,"diff_hunk":"@@ -0,0 +1,29 @@\n+require 'rails_helper'\n+\n+RSpec.describe OrderDigest, type: :model do\n+\tattr_reader :order_digest\n+\n+\tbefore :each do\n+\t\t4.times { create(:order, status: \"ordered\") }\n+\t\t3.times { create(:order, status: \"paid\") }\n+\t\t2.times { create(:order, status: \"completed\") }\n+\t\t1.times { create(:order, status: \"cancelled\") }\n+\t\t@order_digest = OrderDigest.new\n+\tend\n+\n+\tit \"calculates number of orders with status ordered\" do\n+\t\texpect(order_digest.ordered).to eq(4)\n+\tend\n+\n+\tit \"calculates number of orders with status paid\" do\n+\t\texpect(order_digest.paid).to eq(3)\n+\tend\n+\n+\tit \"calculates number of orders with status completed\" do\n+\t\texpect(order_digest.completed).to eq(2)\n+\tend\n+\n+\tit \"calculates number of orders with status cancelled\" do","path":"spec/models/order_digest_spec.rb","position":26,"original_position":26,"commit_id":"53be1cfc9710cc6afaaa6c264687e2169f5f03dc","original_commit_id":"53be1cfc9710cc6afaaa6c264687e2169f5f03dc","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":"Tab detected.","created_at":"2016-01-21T15:57:05Z","updated_at":"2016-01-21T15:57:05Z","html_url":"https://github.com/bethsebian/apocalypsify/pull/92#discussion_r50419251","pull_request_url":"https://api.github.com/repos/bethsebian/apocalypsify/pulls/92","_links":{"self":{"href":"https://api.github.com/repos/bethsebian/apocalypsify/pulls/comments/50419251"},"html":{"href":"https://github.com/bethsebian/apocalypsify/pull/92#discussion_r50419251"},"pull_request":{"href":"https://api.github.com/repos/bethsebian/apocalypsify/pulls/92"}}},"pull_request":{"url":"https://api.github.com/repos/bethsebian/apocalypsify/pulls/92","id":56768419,"html_url":"https://github.com/bethsebian/apocalypsify/pull/92","diff_url":"https://github.com/bethsebian/apocalypsify/pull/92.diff","patch_url":"https://github.com/bethsebian/apocalypsify/pull/92.patch","issue_url":"https://api.github.com/repos/bethsebian/apocalypsify/issues/92","number":92,"state":"open","locked":false,"title":"Model tests wed","user":{"login":"bethsebian","id":12875824,"avatar_url":"https://avatars.githubusercontent.com/u/12875824?v=3","gravatar_id":"","url":"https://api.github.com/users/bethsebian","html_url":"https://github.com/bethsebian","followers_url":"https://api.github.com/users/bethsebian/followers","following_url":"https://api.github.com/users/bethsebian/following{/other_user}","gists_url":"https://api.github.com/users/bethsebian/gists{/gist_id}","starred_url":"https://api.github.com/users/bethsebian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethsebian/subscriptions","organizations_url":"https://api.github.com/users/bethsebian/orgs","repos_url":"https://api.github.com/users/bethsebian/repos","events_url":"https://api.github.com/users/bethsebian/events{/privacy}","received_events_url":"https://api.github.com/users/bethsebian/received_events","type":"User","site_admin":false},"body":"Merged with most recent version of master. 45 tests passing. Only affects model tests.","created_at":"2016-01-21T15:56:57Z","updated_at":"2016-01-21T15:57:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b2533b34e11eacc156a4f495aa475af4ca8a51b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bethsebian/apocalypsify/pulls/92/commits","review_comments_url":"https://api.github.com/repos/bethsebian/apocalypsify/pulls/92/comments","review_comment_url":"https://api.github.com/repos/bethsebian/apocalypsify/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bethsebian/apocalypsify/issues/92/comments","statuses_url":"https://api.github.com/repos/bethsebian/apocalypsify/statuses/53be1cfc9710cc6afaaa6c264687e2169f5f03dc","head":{"label":"bethsebian:model_tests_wed","ref":"model_tests_wed","sha":"53be1cfc9710cc6afaaa6c264687e2169f5f03dc","user":{"login":"bethsebian","id":12875824,"avatar_url":"https://avatars.githubusercontent.com/u/12875824?v=3","gravatar_id":"","url":"https://api.github.com/users/bethsebian","html_url":"https://github.com/bethsebian","followers_url":"https://api.github.com/users/bethsebian/followers","following_url":"https://api.github.com/users/bethsebian/following{/other_user}","gists_url":"https://api.github.com/users/bethsebian/gists{/gist_id}","starred_url":"https://api.github.com/users/bethsebian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethsebian/subscriptions","organizations_url":"https://api.github.com/users/bethsebian/orgs","repos_url":"https://api.github.com/users/bethsebian/repos","events_url":"https://api.github.com/users/bethsebian/events{/privacy}","received_events_url":"https://api.github.com/users/bethsebian/received_events","type":"User","site_admin":false},"repo":{"id":49447076,"name":"apocalypsify","full_name":"bethsebian/apocalypsify","owner":{"login":"bethsebian","id":12875824,"avatar_url":"https://avatars.githubusercontent.com/u/12875824?v=3","gravatar_id":"","url":"https://api.github.com/users/bethsebian","html_url":"https://github.com/bethsebian","followers_url":"https://api.github.com/users/bethsebian/followers","following_url":"https://api.github.com/users/bethsebian/following{/other_user}","gists_url":"https://api.github.com/users/bethsebian/gists{/gist_id}","starred_url":"https://api.github.com/users/bethsebian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethsebian/subscriptions","organizations_url":"https://api.github.com/users/bethsebian/orgs","repos_url":"https://api.github.com/users/bethsebian/repos","events_url":"https://api.github.com/users/bethsebian/events{/privacy}","received_events_url":"https://api.github.com/users/bethsebian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bethsebian/apocalypsify","description":"","fork":false,"url":"https://api.github.com/repos/bethsebian/apocalypsify","forks_url":"https://api.github.com/repos/bethsebian/apocalypsify/forks","keys_url":"https://api.github.com/repos/bethsebian/apocalypsify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bethsebian/apocalypsify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bethsebian/apocalypsify/teams","hooks_url":"https://api.github.com/repos/bethsebian/apocalypsify/hooks","issue_events_url":"https://api.github.com/repos/bethsebian/apocalypsify/issues/events{/number}","events_url":"https://api.github.com/repos/bethsebian/apocalypsify/events","assignees_url":"https://api.github.com/repos/bethsebian/apocalypsify/assignees{/user}","branches_url":"https://api.github.com/repos/bethsebian/apocalypsify/branches{/branch}","tags_url":"https://api.github.com/repos/bethsebian/apocalypsify/tags","blobs_url":"https://api.github.com/repos/bethsebian/apocalypsify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bethsebian/apocalypsify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bethsebian/apocalypsify/git/refs{/sha}","trees_url":"https://api.github.com/repos/bethsebian/apocalypsify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bethsebian/apocalypsify/statuses/{sha}","languages_url":"https://api.github.com/repos/bethsebian/apocalypsify/languages","stargazers_url":"https://api.github.com/repos/bethsebian/apocalypsify/stargazers","contributors_url":"https://api.github.com/repos/bethsebian/apocalypsify/contributors","subscribers_url":"https://api.github.com/repos/bethsebian/apocalypsify/subscribers","subscription_url":"https://api.github.com/repos/bethsebian/apocalypsify/subscription","commits_url":"https://api.github.com/repos/bethsebian/apocalypsify/commits{/sha}","git_commits_url":"https://api.github.com/repos/bethsebian/apocalypsify/git/commits{/sha}","comments_url":"https://api.github.com/repos/bethsebian/apocalypsify/comments{/number}","issue_comment_url":"https://api.github.com/repos/bethsebian/apocalypsify/issues/comments{/number}","contents_url":"https://api.github.com/repos/bethsebian/apocalypsify/contents/{+path}","compare_url":"https://api.github.com/repos/bethsebian/apocalypsify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bethsebian/apocalypsify/merges","archive_url":"https://api.github.com/repos/bethsebian/apocalypsify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bethsebian/apocalypsify/downloads","issues_url":"https://api.github.com/repos/bethsebian/apocalypsify/issues{/number}","pulls_url":"https://api.github.com/repos/bethsebian/apocalypsify/pulls{/number}","milestones_url":"https://api.github.com/repos/bethsebian/apocalypsify/milestones{/number}","notifications_url":"https://api.github.com/repos/bethsebian/apocalypsify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bethsebian/apocalypsify/labels{/name}","releases_url":"https://api.github.com/repos/bethsebian/apocalypsify/releases{/id}","created_at":"2016-01-11T18:55:53Z","updated_at":"2016-01-12T21:13:22Z","pushed_at":"2016-01-21T15:56:57Z","git_url":"git://github.com/bethsebian/apocalypsify.git","ssh_url":"git@github.com:bethsebian/apocalypsify.git","clone_url":"https://github.com/bethsebian/apocalypsify.git","svn_url":"https://github.com/bethsebian/apocalypsify","homepage":null,"size":23325,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"bethsebian:master","ref":"master","sha":"18b1550e4982381ccc7a534d2502a12ecc5aa8d6","user":{"login":"bethsebian","id":12875824,"avatar_url":"https://avatars.githubusercontent.com/u/12875824?v=3","gravatar_id":"","url":"https://api.github.com/users/bethsebian","html_url":"https://github.com/bethsebian","followers_url":"https://api.github.com/users/bethsebian/followers","following_url":"https://api.github.com/users/bethsebian/following{/other_user}","gists_url":"https://api.github.com/users/bethsebian/gists{/gist_id}","starred_url":"https://api.github.com/users/bethsebian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethsebian/subscriptions","organizations_url":"https://api.github.com/users/bethsebian/orgs","repos_url":"https://api.github.com/users/bethsebian/repos","events_url":"https://api.github.com/users/bethsebian/events{/privacy}","received_events_url":"https://api.github.com/users/bethsebian/received_events","type":"User","site_admin":false},"repo":{"id":49447076,"name":"apocalypsify","full_name":"bethsebian/apocalypsify","owner":{"login":"bethsebian","id":12875824,"avatar_url":"https://avatars.githubusercontent.com/u/12875824?v=3","gravatar_id":"","url":"https://api.github.com/users/bethsebian","html_url":"https://github.com/bethsebian","followers_url":"https://api.github.com/users/bethsebian/followers","following_url":"https://api.github.com/users/bethsebian/following{/other_user}","gists_url":"https://api.github.com/users/bethsebian/gists{/gist_id}","starred_url":"https://api.github.com/users/bethsebian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethsebian/subscriptions","organizations_url":"https://api.github.com/users/bethsebian/orgs","repos_url":"https://api.github.com/users/bethsebian/repos","events_url":"https://api.github.com/users/bethsebian/events{/privacy}","received_events_url":"https://api.github.com/users/bethsebian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bethsebian/apocalypsify","description":"","fork":false,"url":"https://api.github.com/repos/bethsebian/apocalypsify","forks_url":"https://api.github.com/repos/bethsebian/apocalypsify/forks","keys_url":"https://api.github.com/repos/bethsebian/apocalypsify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bethsebian/apocalypsify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bethsebian/apocalypsify/teams","hooks_url":"https://api.github.com/repos/bethsebian/apocalypsify/hooks","issue_events_url":"https://api.github.com/repos/bethsebian/apocalypsify/issues/events{/number}","events_url":"https://api.github.com/repos/bethsebian/apocalypsify/events","assignees_url":"https://api.github.com/repos/bethsebian/apocalypsify/assignees{/user}","branches_url":"https://api.github.com/repos/bethsebian/apocalypsify/branches{/branch}","tags_url":"https://api.github.com/repos/bethsebian/apocalypsify/tags","blobs_url":"https://api.github.com/repos/bethsebian/apocalypsify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bethsebian/apocalypsify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bethsebian/apocalypsify/git/refs{/sha}","trees_url":"https://api.github.com/repos/bethsebian/apocalypsify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bethsebian/apocalypsify/statuses/{sha}","languages_url":"https://api.github.com/repos/bethsebian/apocalypsify/languages","stargazers_url":"https://api.github.com/repos/bethsebian/apocalypsify/stargazers","contributors_url":"https://api.github.com/repos/bethsebian/apocalypsify/contributors","subscribers_url":"https://api.github.com/repos/bethsebian/apocalypsify/subscribers","subscription_url":"https://api.github.com/repos/bethsebian/apocalypsify/subscription","commits_url":"https://api.github.com/repos/bethsebian/apocalypsify/commits{/sha}","git_commits_url":"https://api.github.com/repos/bethsebian/apocalypsify/git/commits{/sha}","comments_url":"https://api.github.com/repos/bethsebian/apocalypsify/comments{/number}","issue_comment_url":"https://api.github.com/repos/bethsebian/apocalypsify/issues/comments{/number}","contents_url":"https://api.github.com/repos/bethsebian/apocalypsify/contents/{+path}","compare_url":"https://api.github.com/repos/bethsebian/apocalypsify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bethsebian/apocalypsify/merges","archive_url":"https://api.github.com/repos/bethsebian/apocalypsify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bethsebian/apocalypsify/downloads","issues_url":"https://api.github.com/repos/bethsebian/apocalypsify/issues{/number}","pulls_url":"https://api.github.com/repos/bethsebian/apocalypsify/pulls{/number}","milestones_url":"https://api.github.com/repos/bethsebian/apocalypsify/milestones{/number}","notifications_url":"https://api.github.com/repos/bethsebian/apocalypsify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bethsebian/apocalypsify/labels{/name}","releases_url":"https://api.github.com/repos/bethsebian/apocalypsify/releases{/id}","created_at":"2016-01-11T18:55:53Z","updated_at":"2016-01-12T21:13:22Z","pushed_at":"2016-01-21T15:56:57Z","git_url":"git://github.com/bethsebian/apocalypsify.git","ssh_url":"git@github.com:bethsebian/apocalypsify.git","clone_url":"https://github.com/bethsebian/apocalypsify.git","svn_url":"https://github.com/bethsebian/apocalypsify","homepage":null,"size":23325,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bethsebian/apocalypsify/pulls/92"},"html":{"href":"https://github.com/bethsebian/apocalypsify/pull/92"},"issue":{"href":"https://api.github.com/repos/bethsebian/apocalypsify/issues/92"},"comments":{"href":"https://api.github.com/repos/bethsebian/apocalypsify/issues/92/comments"},"review_comments":{"href":"https://api.github.com/repos/bethsebian/apocalypsify/pulls/92/comments"},"review_comment":{"href":"https://api.github.com/repos/bethsebian/apocalypsify/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bethsebian/apocalypsify/pulls/92/commits"},"statuses":{"href":"https://api.github.com/repos/bethsebian/apocalypsify/statuses/53be1cfc9710cc6afaaa6c264687e2169f5f03dc"}}}}