{"action":"created","comment":{"url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls/comments/71797747","id":71797747,"diff_hunk":"@@ -0,0 +1,38 @@\n+require \"rails_helper\"\n+\n+RSpec.describe WishlistsForGuestsController do\n+  let(:new_wishlist) { Wishlist.create(name: \"Name\", description: \"Description\") }\n+  let(:correct_token) { new_wishlist[:token] }\n+  let(:incorrect_token) { \"000\"}\n+\n+  describe \"GET show\" do\n+    context \"when a valid token is provided\" do\n+      before do\n+        get_request(correct_token)\n+      end\n+\n+      it \"has a 200 status code\" do\n+        expect(response.status).to eq(200)\n+      end\n+    end\n+\n+    context \"when an invalid token is provided\" do\n+      before do\n+        get_request(incorrect_token)\n+      end\n+\n+      it \"renders a 404 page\" do\n+        expect(response).to render_template(:file => \"#{Rails.root}/public/404.html\")\n+      end\n+\n+      it \"has a 200 status code\" do\n+        expect(response.status).to eq(200)\n+      end\n+    end\n+  end\n+\n+  private","path":"spec/controllers/wishlists_for_guests_controller_spec.rb","position":35,"original_position":34,"commit_id":"2ec197f3759f4f88ac7ae8145d85ac7ad9f73be2","original_commit_id":"3e19e8cc007798f1c73043a79b5ab119fb97e401","user":{"login":"shadrk","id":19561672,"avatar_url":"https://avatars.githubusercontent.com/u/19561672?v=3","gravatar_id":"","url":"https://api.github.com/users/shadrk","html_url":"https://github.com/shadrk","followers_url":"https://api.github.com/users/shadrk/followers","following_url":"https://api.github.com/users/shadrk/following{/other_user}","gists_url":"https://api.github.com/users/shadrk/gists{/gist_id}","starred_url":"https://api.github.com/users/shadrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadrk/subscriptions","organizations_url":"https://api.github.com/users/shadrk/orgs","repos_url":"https://api.github.com/users/shadrk/repos","events_url":"https://api.github.com/users/shadrk/events{/privacy}","received_events_url":"https://api.github.com/users/shadrk/received_events","type":"User","site_admin":false},"body":"I agree it'd be easier for everyone to use the same styling, so let's do this.","created_at":"2016-07-21T22:16:59Z","updated_at":"2016-07-21T22:16:59Z","html_url":"https://github.com/Ragnarson-Internship2016/group-I/pull/54#discussion_r71797747","pull_request_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls/comments/71797747"},"html":{"href":"https://github.com/Ragnarson-Internship2016/group-I/pull/54#discussion_r71797747"},"pull_request":{"href":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls/54","id":78327423,"html_url":"https://github.com/Ragnarson-Internship2016/group-I/pull/54","diff_url":"https://github.com/Ragnarson-Internship2016/group-I/pull/54.diff","patch_url":"https://github.com/Ragnarson-Internship2016/group-I/pull/54.patch","issue_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/issues/54","number":54,"state":"open","locked":false,"title":"Add creating unique tokens for Wishlists and unique URLs for Wishlists","user":{"login":"shadrk","id":19561672,"avatar_url":"https://avatars.githubusercontent.com/u/19561672?v=3","gravatar_id":"","url":"https://api.github.com/users/shadrk","html_url":"https://github.com/shadrk","followers_url":"https://api.github.com/users/shadrk/followers","following_url":"https://api.github.com/users/shadrk/following{/other_user}","gists_url":"https://api.github.com/users/shadrk/gists{/gist_id}","starred_url":"https://api.github.com/users/shadrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadrk/subscriptions","organizations_url":"https://api.github.com/users/shadrk/orgs","repos_url":"https://api.github.com/users/shadrk/repos","events_url":"https://api.github.com/users/shadrk/events{/privacy}","received_events_url":"https://api.github.com/users/shadrk/received_events","type":"User","site_admin":false},"body":"Changes:\r\nAdd Tokenable model concern for creating unique tokens\r\nChange Wishlist model to create a database field with token for every wishlist\r\nAdd route for URLs using tokens\r\nAdd WishlistsForGuestsController with #show method matching unique token to specific wishlist\r\nAdd test for Wishlist model (testing creating unique tokens)\r\nAdd tests for WishlistsForGuestsController\r\n\r\nCloses #21","created_at":"2016-07-21T14:37:56Z","updated_at":"2016-07-21T22:16:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"379413a1bd7b01761ae04384cbe31e34733bc8a8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls/54/commits","review_comments_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls/54/comments","review_comment_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/issues/54/comments","statuses_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/statuses/2ec197f3759f4f88ac7ae8145d85ac7ad9f73be2","head":{"label":"Ragnarson-Internship2016:21-unique-link","ref":"21-unique-link","sha":"2ec197f3759f4f88ac7ae8145d85ac7ad9f73be2","user":{"login":"Ragnarson-Internship2016","id":20494645,"avatar_url":"https://avatars.githubusercontent.com/u/20494645?v=3","gravatar_id":"","url":"https://api.github.com/users/Ragnarson-Internship2016","html_url":"https://github.com/Ragnarson-Internship2016","followers_url":"https://api.github.com/users/Ragnarson-Internship2016/followers","following_url":"https://api.github.com/users/Ragnarson-Internship2016/following{/other_user}","gists_url":"https://api.github.com/users/Ragnarson-Internship2016/gists{/gist_id}","starred_url":"https://api.github.com/users/Ragnarson-Internship2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ragnarson-Internship2016/subscriptions","organizations_url":"https://api.github.com/users/Ragnarson-Internship2016/orgs","repos_url":"https://api.github.com/users/Ragnarson-Internship2016/repos","events_url":"https://api.github.com/users/Ragnarson-Internship2016/events{/privacy}","received_events_url":"https://api.github.com/users/Ragnarson-Internship2016/received_events","type":"Organization","site_admin":false},"repo":{"id":63544256,"name":"group-I","full_name":"Ragnarson-Internship2016/group-I","owner":{"login":"Ragnarson-Internship2016","id":20494645,"avatar_url":"https://avatars.githubusercontent.com/u/20494645?v=3","gravatar_id":"","url":"https://api.github.com/users/Ragnarson-Internship2016","html_url":"https://github.com/Ragnarson-Internship2016","followers_url":"https://api.github.com/users/Ragnarson-Internship2016/followers","following_url":"https://api.github.com/users/Ragnarson-Internship2016/following{/other_user}","gists_url":"https://api.github.com/users/Ragnarson-Internship2016/gists{/gist_id}","starred_url":"https://api.github.com/users/Ragnarson-Internship2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ragnarson-Internship2016/subscriptions","organizations_url":"https://api.github.com/users/Ragnarson-Internship2016/orgs","repos_url":"https://api.github.com/users/Ragnarson-Internship2016/repos","events_url":"https://api.github.com/users/Ragnarson-Internship2016/events{/privacy}","received_events_url":"https://api.github.com/users/Ragnarson-Internship2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ragnarson-Internship2016/group-I","description":null,"fork":false,"url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I","forks_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/forks","keys_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/teams","hooks_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/hooks","issue_events_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/issues/events{/number}","events_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/events","assignees_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/assignees{/user}","branches_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/branches{/branch}","tags_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/tags","blobs_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/statuses/{sha}","languages_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/languages","stargazers_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/stargazers","contributors_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/contributors","subscribers_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/subscribers","subscription_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/subscription","commits_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/contents/{+path}","compare_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/merges","archive_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/downloads","issues_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/issues{/number}","pulls_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls{/number}","milestones_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/milestones{/number}","notifications_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/labels{/name}","releases_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/releases{/id}","deployments_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/deployments","created_at":"2016-07-17T17:33:15Z","updated_at":"2016-07-18T20:12:09Z","pushed_at":"2016-07-21T16:38:58Z","git_url":"git://github.com/Ragnarson-Internship2016/group-I.git","ssh_url":"git@github.com:Ragnarson-Internship2016/group-I.git","clone_url":"https://github.com/Ragnarson-Internship2016/group-I.git","svn_url":"https://github.com/Ragnarson-Internship2016/group-I","homepage":null,"size":67,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":18,"forks":1,"open_issues":18,"watchers":0,"default_branch":"master"}},"base":{"label":"Ragnarson-Internship2016:master","ref":"master","sha":"c98eb46df29a90e764503132a57443f2109a292a","user":{"login":"Ragnarson-Internship2016","id":20494645,"avatar_url":"https://avatars.githubusercontent.com/u/20494645?v=3","gravatar_id":"","url":"https://api.github.com/users/Ragnarson-Internship2016","html_url":"https://github.com/Ragnarson-Internship2016","followers_url":"https://api.github.com/users/Ragnarson-Internship2016/followers","following_url":"https://api.github.com/users/Ragnarson-Internship2016/following{/other_user}","gists_url":"https://api.github.com/users/Ragnarson-Internship2016/gists{/gist_id}","starred_url":"https://api.github.com/users/Ragnarson-Internship2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ragnarson-Internship2016/subscriptions","organizations_url":"https://api.github.com/users/Ragnarson-Internship2016/orgs","repos_url":"https://api.github.com/users/Ragnarson-Internship2016/repos","events_url":"https://api.github.com/users/Ragnarson-Internship2016/events{/privacy}","received_events_url":"https://api.github.com/users/Ragnarson-Internship2016/received_events","type":"Organization","site_admin":false},"repo":{"id":63544256,"name":"group-I","full_name":"Ragnarson-Internship2016/group-I","owner":{"login":"Ragnarson-Internship2016","id":20494645,"avatar_url":"https://avatars.githubusercontent.com/u/20494645?v=3","gravatar_id":"","url":"https://api.github.com/users/Ragnarson-Internship2016","html_url":"https://github.com/Ragnarson-Internship2016","followers_url":"https://api.github.com/users/Ragnarson-Internship2016/followers","following_url":"https://api.github.com/users/Ragnarson-Internship2016/following{/other_user}","gists_url":"https://api.github.com/users/Ragnarson-Internship2016/gists{/gist_id}","starred_url":"https://api.github.com/users/Ragnarson-Internship2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ragnarson-Internship2016/subscriptions","organizations_url":"https://api.github.com/users/Ragnarson-Internship2016/orgs","repos_url":"https://api.github.com/users/Ragnarson-Internship2016/repos","events_url":"https://api.github.com/users/Ragnarson-Internship2016/events{/privacy}","received_events_url":"https://api.github.com/users/Ragnarson-Internship2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ragnarson-Internship2016/group-I","description":null,"fork":false,"url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I","forks_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/forks","keys_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/teams","hooks_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/hooks","issue_events_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/issues/events{/number}","events_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/events","assignees_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/assignees{/user}","branches_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/branches{/branch}","tags_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/tags","blobs_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/statuses/{sha}","languages_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/languages","stargazers_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/stargazers","contributors_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/contributors","subscribers_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/subscribers","subscription_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/subscription","commits_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/contents/{+path}","compare_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/merges","archive_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/downloads","issues_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/issues{/number}","pulls_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls{/number}","milestones_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/milestones{/number}","notifications_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/labels{/name}","releases_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/releases{/id}","deployments_url":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/deployments","created_at":"2016-07-17T17:33:15Z","updated_at":"2016-07-18T20:12:09Z","pushed_at":"2016-07-21T16:38:58Z","git_url":"git://github.com/Ragnarson-Internship2016/group-I.git","ssh_url":"git@github.com:Ragnarson-Internship2016/group-I.git","clone_url":"https://github.com/Ragnarson-Internship2016/group-I.git","svn_url":"https://github.com/Ragnarson-Internship2016/group-I","homepage":null,"size":67,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":18,"forks":1,"open_issues":18,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls/54"},"html":{"href":"https://github.com/Ragnarson-Internship2016/group-I/pull/54"},"issue":{"href":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/issues/54"},"comments":{"href":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/Ragnarson-Internship2016/group-I/statuses/2ec197f3759f4f88ac7ae8145d85ac7ad9f73be2"}}}}
{"actor":{"display_login":"shadrk"}}