GitHub PullRequestReviewCommentEvent at 2014-12-02 19:41:43
Repository: level_up_exercises
Actor: tharumax
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/21185068","id":21185068,"diff_hunk":"@@ -0,0 +1,47 @@\n+Feature: Add items to the cart\n+  As a shopper\n+  In order to purchase items from the e-commerce site\n+  I want to add items to the cart\n+\n+  Background:\n+    Given Item A has 6 units in stock\n+      And Item B has 3 units in stock\n+      And Item C currently out-of-stock\n+      And Item D is a discontinued product\n+\n+  @happy\n+  Scenario: Add items to an empty cart\n+    Given the cart is empty\n+    When I add 3 units of Item A to the cart\n+    Then I see 3 units of item A in the cart\n+      And I see 3 as total quantity in the cart\n+\n+  @happy\n+  Scenario: Add items to an non-empty cart\n+    Given the cart has 3 units of Item A\n+    When I add 2 units of Item B to the cart\n+    Then I see 2 of Item B in the cart\n+      And I see 5 as total quantity in the cart\n+\n+  @sad\n+  Scenario: Add out-of stock items\n+    When I add 2 units of Item C\n+    Then I see out of stock error\n+\n+  @sad\n+  Scenario: Add discontinued stock items\n+    When I add 1 unit of Item D\n+    Then I see discontinued product error\n+\n+  @sad\n+  Scenario: Add more than the availability\n+    Given the cart has 3 units of Item A\n+    When I add 4 units of Item A to the cart\n+    Then I see only 6 units of Item A in the cart","path":"shopping_cart/features/add.feature","position":40,"original_position":40,"commit_id":"6e61eb0d3da0107f26c3bbcd4fe5612393e635f3","original_commit_id":"6e61eb0d3da0107f26c3bbcd4fe5612393e635f3","user":{"login":"tharumax","id":3639239,"avatar_url":"https://avatars.githubusercontent.com/u/3639239?v=3","gravatar_id":"","url":"https://api.github.com/users/tharumax","html_url":"https://github.com/tharumax","followers_url":"https://api.github.com/users/tharumax/followers","following_url":"https://api.github.com/users/tharumax/following{/other_user}","gists_url":"https://api.github.com/users/tharumax/gists{/gist_id}","starred_url":"https://api.github.com/users/tharumax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tharumax/subscriptions","organizations_url":"https://api.github.com/users/tharumax/orgs","repos_url":"https://api.github.com/users/tharumax/repos","events_url":"https://api.github.com/users/tharumax/events{/privacy}","received_events_url":"https://api.github.com/users/tharumax/received_events","type":"User","site_admin":false},"body":"I wanted to emphasize there are only 6 unit in the cart, not the expected 7 units.","created_at":"2014-12-02T19:41:43Z","updated_at":"2014-12-02T19:41:43Z","html_url":"https://github.com/jmmastey/level_up_exercises/pull/310#discussion_r21185068","pull_request_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/310","_links":{"self":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/21185068"},"html":{"href":"https://github.com/jmmastey/level_up_exercises/pull/310#discussion_r21185068"},"pull_request":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/310"}}},"pull_request":{"url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/310","id":25299147,"html_url":"https://github.com/jmmastey/level_up_exercises/pull/310","diff_url":"https://github.com/jmmastey/level_up_exercises/pull/310.diff","patch_url":"https://github.com/jmmastey/level_up_exercises/pull/310.patch","issue_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/310","number":310,"state":"open","locked":false,"title":"Shopping cart - 2nd submission.","user":{"login":"tharumax","id":3639239,"avatar_url":"https://avatars.githubusercontent.com/u/3639239?v=3","gravatar_id":"","url":"https://api.github.com/users/tharumax","html_url":"https://github.com/tharumax","followers_url":"https://api.github.com/users/tharumax/followers","following_url":"https://api.github.com/users/tharumax/following{/other_user}","gists_url":"https://api.github.com/users/tharumax/gists{/gist_id}","starred_url":"https://api.github.com/users/tharumax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tharumax/subscriptions","organizations_url":"https://api.github.com/users/tharumax/orgs","repos_url":"https://api.github.com/users/tharumax/repos","events_url":"https://api.github.com/users/tharumax/events{/privacy}","received_events_url":"https://api.github.com/users/tharumax/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-12-01T21:12:31Z","updated_at":"2014-12-02T19:41:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e44f7b1eb77eb0d4177dbc5cb66b617daf971dd7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/310/commits","review_comments_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/310/comments","review_comment_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/310/comments","statuses_url":"https://api.github.com/repos/jmmastey/level_up_exercises/statuses/6e61eb0d3da0107f26c3bbcd4fe5612393e635f3","head":{"label":"tharumax:shopping_cart","ref":"shopping_cart","sha":"6e61eb0d3da0107f26c3bbcd4fe5612393e635f3","user":{"login":"tharumax","id":3639239,"avatar_url":"https://avatars.githubusercontent.com/u/3639239?v=3","gravatar_id":"","url":"https://api.github.com/users/tharumax","html_url":"https://github.com/tharumax","followers_url":"https://api.github.com/users/tharumax/followers","following_url":"https://api.github.com/users/tharumax/following{/other_user}","gists_url":"https://api.github.com/users/tharumax/gists{/gist_id}","starred_url":"https://api.github.com/users/tharumax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tharumax/subscriptions","organizations_url":"https://api.github.com/users/tharumax/orgs","repos_url":"https://api.github.com/users/tharumax/repos","events_url":"https://api.github.com/users/tharumax/events{/privacy}","received_events_url":"https://api.github.com/users/tharumax/received_events","type":"User","site_admin":false},"repo":{"id":24961830,"name":"level_up_exercises","full_name":"tharumax/level_up_exercises","owner":{"login":"tharumax","id":3639239,"avatar_url":"https://avatars.githubusercontent.com/u/3639239?v=3","gravatar_id":"","url":"https://api.github.com/users/tharumax","html_url":"https://github.com/tharumax","followers_url":"https://api.github.com/users/tharumax/followers","following_url":"https://api.github.com/users/tharumax/following{/other_user}","gists_url":"https://api.github.com/users/tharumax/gists{/gist_id}","starred_url":"https://api.github.com/users/tharumax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tharumax/subscriptions","organizations_url":"https://api.github.com/users/tharumax/orgs","repos_url":"https://api.github.com/users/tharumax/repos","events_url":"https://api.github.com/users/tharumax/events{/privacy}","received_events_url":"https://api.github.com/users/tharumax/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tharumax/level_up_exercises","description":"A series of code-related assignments to challenge starting engineers","fork":true,"url":"https://api.github.com/repos/tharumax/level_up_exercises","forks_url":"https://api.github.com/repos/tharumax/level_up_exercises/forks","keys_url":"https://api.github.com/repos/tharumax/level_up_exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tharumax/level_up_exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tharumax/level_up_exercises/teams","hooks_url":"https://api.github.com/repos/tharumax/level_up_exercises/hooks","issue_events_url":"https://api.github.com/repos/tharumax/level_up_exercises/issues/events{/number}","events_url":"https://api.github.com/repos/tharumax/level_up_exercises/events","assignees_url":"https://api.github.com/repos/tharumax/level_up_exercises/assignees{/user}","branches_url":"https://api.github.com/repos/tharumax/level_up_exercises/branches{/branch}","tags_url":"https://api.github.com/repos/tharumax/level_up_exercises/tags","blobs_url":"https://api.github.com/repos/tharumax/level_up_exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tharumax/level_up_exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tharumax/level_up_exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/tharumax/level_up_exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tharumax/level_up_exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/tharumax/level_up_exercises/languages","stargazers_url":"https://api.github.com/repos/tharumax/level_up_exercises/stargazers","contributors_url":"https://api.github.com/repos/tharumax/level_up_exercises/contributors","subscribers_url":"https://api.github.com/repos/tharumax/level_up_exercises/subscribers","subscription_url":"https://api.github.com/repos/tharumax/level_up_exercises/subscription","commits_url":"https://api.github.com/repos/tharumax/level_up_exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/tharumax/level_up_exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/tharumax/level_up_exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/tharumax/level_up_exercises/issues/comments/{number}","contents_url":"https://api.github.com/repos/tharumax/level_up_exercises/contents/{+path}","compare_url":"https://api.github.com/repos/tharumax/level_up_exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tharumax/level_up_exercises/merges","archive_url":"https://api.github.com/repos/tharumax/level_up_exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tharumax/level_up_exercises/downloads","issues_url":"https://api.github.com/repos/tharumax/level_up_exercises/issues{/number}","pulls_url":"https://api.github.com/repos/tharumax/level_up_exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/tharumax/level_up_exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/tharumax/level_up_exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tharumax/level_up_exercises/labels{/name}","releases_url":"https://api.github.com/repos/tharumax/level_up_exercises/releases{/id}","created_at":"2014-10-08T21:29:47Z","updated_at":"2014-11-04T20:41:02Z","pushed_at":"2014-12-01T21:00:54Z","git_url":"git://github.com/tharumax/level_up_exercises.git","ssh_url":"git@github.com:tharumax/level_up_exercises.git","clone_url":"https://github.com/tharumax/level_up_exercises.git","svn_url":"https://github.com/tharumax/level_up_exercises","homepage":"http://leveluprails.herokuapp.com","size":2024,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"jmmastey:master","ref":"master","sha":"d6fb3782079429bc5629858bbd6c76ee3d4906b0","user":{"login":"jmmastey","id":302011,"avatar_url":"https://avatars.githubusercontent.com/u/302011?v=3","gravatar_id":"","url":"https://api.github.com/users/jmmastey","html_url":"https://github.com/jmmastey","followers_url":"https://api.github.com/users/jmmastey/followers","following_url":"https://api.github.com/users/jmmastey/following{/other_user}","gists_url":"https://api.github.com/users/jmmastey/gists{/gist_id}","starred_url":"https://api.github.com/users/jmmastey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmmastey/subscriptions","organizations_url":"https://api.github.com/users/jmmastey/orgs","repos_url":"https://api.github.com/users/jmmastey/repos","events_url":"https://api.github.com/users/jmmastey/events{/privacy}","received_events_url":"https://api.github.com/users/jmmastey/received_events","type":"User","site_admin":false},"repo":{"id":20705648,"name":"level_up_exercises","full_name":"jmmastey/level_up_exercises","owner":{"login":"jmmastey","id":302011,"avatar_url":"https://avatars.githubusercontent.com/u/302011?v=3","gravatar_id":"","url":"https://api.github.com/users/jmmastey","html_url":"https://github.com/jmmastey","followers_url":"https://api.github.com/users/jmmastey/followers","following_url":"https://api.github.com/users/jmmastey/following{/other_user}","gists_url":"https://api.github.com/users/jmmastey/gists{/gist_id}","starred_url":"https://api.github.com/users/jmmastey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmmastey/subscriptions","organizations_url":"https://api.github.com/users/jmmastey/orgs","repos_url":"https://api.github.com/users/jmmastey/repos","events_url":"https://api.github.com/users/jmmastey/events{/privacy}","received_events_url":"https://api.github.com/users/jmmastey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmmastey/level_up_exercises","description":"A series of code-related assignments to challenge starting engineers","fork":false,"url":"https://api.github.com/repos/jmmastey/level_up_exercises","forks_url":"https://api.github.com/repos/jmmastey/level_up_exercises/forks","keys_url":"https://api.github.com/repos/jmmastey/level_up_exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmmastey/level_up_exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmmastey/level_up_exercises/teams","hooks_url":"https://api.github.com/repos/jmmastey/level_up_exercises/hooks","issue_events_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/events{/number}","events_url":"https://api.github.com/repos/jmmastey/level_up_exercises/events","assignees_url":"https://api.github.com/repos/jmmastey/level_up_exercises/assignees{/user}","branches_url":"https://api.github.com/repos/jmmastey/level_up_exercises/branches{/branch}","tags_url":"https://api.github.com/repos/jmmastey/level_up_exercises/tags","blobs_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmmastey/level_up_exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/jmmastey/level_up_exercises/languages","stargazers_url":"https://api.github.com/repos/jmmastey/level_up_exercises/stargazers","contributors_url":"https://api.github.com/repos/jmmastey/level_up_exercises/contributors","subscribers_url":"https://api.github.com/repos/jmmastey/level_up_exercises/subscribers","subscription_url":"https://api.github.com/repos/jmmastey/level_up_exercises/subscription","commits_url":"https://api.github.com/repos/jmmastey/level_up_exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmmastey/level_up_exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/comments/{number}","contents_url":"https://api.github.com/repos/jmmastey/level_up_exercises/contents/{+path}","compare_url":"https://api.github.com/repos/jmmastey/level_up_exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmmastey/level_up_exercises/merges","archive_url":"https://api.github.com/repos/jmmastey/level_up_exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmmastey/level_up_exercises/downloads","issues_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues{/number}","pulls_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/jmmastey/level_up_exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/jmmastey/level_up_exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmmastey/level_up_exercises/labels{/name}","releases_url":"https://api.github.com/repos/jmmastey/level_up_exercises/releases{/id}","created_at":"2014-06-10T23:42:24Z","updated_at":"2014-12-01T16:25:57Z","pushed_at":"2014-11-05T12:49:26Z","git_url":"git://github.com/jmmastey/level_up_exercises.git","ssh_url":"git@github.com:jmmastey/level_up_exercises.git","clone_url":"https://github.com/jmmastey/level_up_exercises.git","svn_url":"https://github.com/jmmastey/level_up_exercises","homepage":"http://leveluprails.herokuapp.com","size":39009,"stargazers_count":13,"watchers_count":13,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":6,"forks":48,"open_issues":6,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/310"},"html":{"href":"https://github.com/jmmastey/level_up_exercises/pull/310"},"issue":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/310"},"comments":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/310/comments"},"review_comments":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/310/comments"},"review_comment":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/310/commits"},"statuses":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/statuses/6e61eb0d3da0107f26c3bbcd4fe5612393e635f3"}}}}