{"action":"created","comment":{"url":"https://api.github.com/repos/moneyadviceservice/frontend/pulls/comments/57308619","id":57308619,"diff_hunk":"@@ -21,26 +21,83 @@\n     end\n   end\n \n-  describe '#whitelisted page' do\n-    context 'english pages' do\n-      it 'displays banner for only the Redundancy Calculator' do\n-        request = double('request', url: 'www.example.com/en/tools/redundancy-pay-calculator/',\n-                                    base_url: 'www.example.com')\n-        allow(BudgetWarning).to receive(:request).and_return(request)\n-\n-        expect(described_class.whitelisted?).to be(true)\n+  describe '#whitelisted pages' do\n+    context 'english pages for tools' do\n+      ['redundancy-pay-calculator',\n+       'workplace-pension-contribution-calculator',\n+       'pension-calculator'].each do |tool_name|\n+        describe tool_name do\n+          it \"displays warning banner for #{tool_name}\" do\n+            request = double('request', url: \"www.example.com/en/tools/#{tool_name}/\",\n+                                     base_url: 'www.example.com')\n+            allow(BudgetWarning).to receive(:request).and_return(request)\n+\n+            expect(described_class.whitelisted?).to be(true)\n+          end\n+        end\n       end\n     end\n-    context 'welsh pages' do\n-      it 'displays banner for only the Redundancy Calculator' do\n-        request = double('request', url: 'www.example.com/cy/tools/cyfrifiannell-tal-diswyddo/',\n-                                    base_url: 'www.example.com')\n-        allow(BudgetWarning).to receive(:request).and_return(request)\n \n-        expect(described_class.whitelisted?).to be(true)\n-      end\n+    context 'english pages non-tools' do\n+       it 'displays warning banner for retirement-income-options' do\n+         request = double('request', url: \"www.example.com/en/retirement-income-options/\",\n+                                  base_url: 'www.example.com')\n+         allow(BudgetWarning).to receive(:request).and_return(request)\n+\n+         expect(described_class.whitelisted?).to be(true)\n+       end\n+\n+       it \"displays warning banner for income-drawdown\" do\n+          request = double('request', url: \"www.example.com/en/retirement-income-options/income-drawdown\",\n+                                   base_url: 'www.example.com')\n+          allow(BudgetWarning).to receive(:request).and_return(request)","path":"spec/helpers/budget_warning_spec.rb","position":48,"original_position":48,"commit_id":"ab58cee7cafd860abdd233614cf279351cf4c82a","original_commit_id":"ab58cee7cafd860abdd233614cf279351cf4c82a","user":{"login":"Tr4pSt3R","id":591781,"avatar_url":"https://avatars.githubusercontent.com/u/591781?v=3","gravatar_id":"","url":"https://api.github.com/users/Tr4pSt3R","html_url":"https://github.com/Tr4pSt3R","followers_url":"https://api.github.com/users/Tr4pSt3R/followers","following_url":"https://api.github.com/users/Tr4pSt3R/following{/other_user}","gists_url":"https://api.github.com/users/Tr4pSt3R/gists{/gist_id}","starred_url":"https://api.github.com/users/Tr4pSt3R/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tr4pSt3R/subscriptions","organizations_url":"https://api.github.com/users/Tr4pSt3R/orgs","repos_url":"https://api.github.com/users/Tr4pSt3R/repos","events_url":"https://api.github.com/users/Tr4pSt3R/events{/privacy}","received_events_url":"https://api.github.com/users/Tr4pSt3R/received_events","type":"User","site_admin":false},"body":"yes, well spotted! @urfolomeus ","created_at":"2016-03-24T12:18:27Z","updated_at":"2016-03-24T12:18:27Z","html_url":"https://github.com/moneyadviceservice/frontend/pull/1425#discussion_r57308619","pull_request_url":"https://api.github.com/repos/moneyadviceservice/frontend/pulls/1425","_links":{"self":{"href":"https://api.github.com/repos/moneyadviceservice/frontend/pulls/comments/57308619"},"html":{"href":"https://github.com/moneyadviceservice/frontend/pull/1425#discussion_r57308619"},"pull_request":{"href":"https://api.github.com/repos/moneyadviceservice/frontend/pulls/1425"}}},"pull_request":{"url":"https://api.github.com/repos/moneyadviceservice/frontend/pulls/1425","id":63911793,"html_url":"https://github.com/moneyadviceservice/frontend/pull/1425","diff_url":"https://github.com/moneyadviceservice/frontend/pull/1425.diff","patch_url":"https://github.com/moneyadviceservice/frontend/pull/1425.patch","issue_url":"https://api.github.com/repos/moneyadviceservice/frontend/issues/1425","number":1425,"state":"open","locked":false,"title":"7127 add warning to retirement assets","user":{"login":"Tr4pSt3R","id":591781,"avatar_url":"https://avatars.githubusercontent.com/u/591781?v=3","gravatar_id":"","url":"https://api.github.com/users/Tr4pSt3R","html_url":"https://github.com/Tr4pSt3R","followers_url":"https://api.github.com/users/Tr4pSt3R/followers","following_url":"https://api.github.com/users/Tr4pSt3R/following{/other_user}","gists_url":"https://api.github.com/users/Tr4pSt3R/gists{/gist_id}","starred_url":"https://api.github.com/users/Tr4pSt3R/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tr4pSt3R/subscriptions","organizations_url":"https://api.github.com/users/Tr4pSt3R/orgs","repos_url":"https://api.github.com/users/Tr4pSt3R/repos","events_url":"https://api.github.com/users/Tr4pSt3R/events{/privacy}","received_events_url":"https://api.github.com/users/Tr4pSt3R/received_events","type":"User","site_admin":false},"body":"[DO NOT MEGE] until this PR(https://github.com/moneyadviceservice/frontend/pull/1423) gets through\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"35\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/moneyadviceservice/frontend/1425)\n<!-- Reviewable:end -->\n","created_at":"2016-03-23T16:30:36Z","updated_at":"2016-03-24T12:18:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"578abae44e6da29772ada6b6ba62e1fa0d6351a3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/moneyadviceservice/frontend/pulls/1425/commits","review_comments_url":"https://api.github.com/repos/moneyadviceservice/frontend/pulls/1425/comments","review_comment_url":"https://api.github.com/repos/moneyadviceservice/frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moneyadviceservice/frontend/issues/1425/comments","statuses_url":"https://api.github.com/repos/moneyadviceservice/frontend/statuses/ab58cee7cafd860abdd233614cf279351cf4c82a","head":{"label":"moneyadviceservice:7127_add-warning-to-retirement-assets","ref":"7127_add-warning-to-retirement-assets","sha":"ab58cee7cafd860abdd233614cf279351cf4c82a","user":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"repo":{"id":15315123,"name":"frontend","full_name":"moneyadviceservice/frontend","owner":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moneyadviceservice/frontend","description":"The Money Advice Service's improved website.","fork":false,"url":"https://api.github.com/repos/moneyadviceservice/frontend","forks_url":"https://api.github.com/repos/moneyadviceservice/frontend/forks","keys_url":"https://api.github.com/repos/moneyadviceservice/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moneyadviceservice/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moneyadviceservice/frontend/teams","hooks_url":"https://api.github.com/repos/moneyadviceservice/frontend/hooks","issue_events_url":"https://api.github.com/repos/moneyadviceservice/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/moneyadviceservice/frontend/events","assignees_url":"https://api.github.com/repos/moneyadviceservice/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/moneyadviceservice/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/moneyadviceservice/frontend/tags","blobs_url":"https://api.github.com/repos/moneyadviceservice/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moneyadviceservice/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moneyadviceservice/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/moneyadviceservice/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moneyadviceservice/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/moneyadviceservice/frontend/languages","stargazers_url":"https://api.github.com/repos/moneyadviceservice/frontend/stargazers","contributors_url":"https://api.github.com/repos/moneyadviceservice/frontend/contributors","subscribers_url":"https://api.github.com/repos/moneyadviceservice/frontend/subscribers","subscription_url":"https://api.github.com/repos/moneyadviceservice/frontend/subscription","commits_url":"https://api.github.com/repos/moneyadviceservice/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/moneyadviceservice/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/moneyadviceservice/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/moneyadviceservice/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/moneyadviceservice/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/moneyadviceservice/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moneyadviceservice/frontend/merges","archive_url":"https://api.github.com/repos/moneyadviceservice/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moneyadviceservice/frontend/downloads","issues_url":"https://api.github.com/repos/moneyadviceservice/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/moneyadviceservice/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/moneyadviceservice/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/moneyadviceservice/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moneyadviceservice/frontend/labels{/name}","releases_url":"https://api.github.com/repos/moneyadviceservice/frontend/releases{/id}","deployments_url":"https://api.github.com/repos/moneyadviceservice/frontend/deployments","created_at":"2013-12-19T15:25:21Z","updated_at":"2016-02-20T03:58:05Z","pushed_at":"2016-03-24T11:31:59Z","git_url":"git://github.com/moneyadviceservice/frontend.git","ssh_url":"git@github.com:moneyadviceservice/frontend.git","clone_url":"https://github.com/moneyadviceservice/frontend.git","svn_url":"https://github.com/moneyadviceservice/frontend","homepage":"https://www.moneyadviceservice.org.uk  ","size":26702,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":19,"forks":7,"open_issues":19,"watchers":6,"default_branch":"master"}},"base":{"label":"moneyadviceservice:master","ref":"master","sha":"8e9b4a3a04ceb6a970381d68c19d35921ddd47e9","user":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"repo":{"id":15315123,"name":"frontend","full_name":"moneyadviceservice/frontend","owner":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moneyadviceservice/frontend","description":"The Money Advice Service's improved website.","fork":false,"url":"https://api.github.com/repos/moneyadviceservice/frontend","forks_url":"https://api.github.com/repos/moneyadviceservice/frontend/forks","keys_url":"https://api.github.com/repos/moneyadviceservice/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moneyadviceservice/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moneyadviceservice/frontend/teams","hooks_url":"https://api.github.com/repos/moneyadviceservice/frontend/hooks","issue_events_url":"https://api.github.com/repos/moneyadviceservice/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/moneyadviceservice/frontend/events","assignees_url":"https://api.github.com/repos/moneyadviceservice/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/moneyadviceservice/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/moneyadviceservice/frontend/tags","blobs_url":"https://api.github.com/repos/moneyadviceservice/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moneyadviceservice/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moneyadviceservice/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/moneyadviceservice/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moneyadviceservice/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/moneyadviceservice/frontend/languages","stargazers_url":"https://api.github.com/repos/moneyadviceservice/frontend/stargazers","contributors_url":"https://api.github.com/repos/moneyadviceservice/frontend/contributors","subscribers_url":"https://api.github.com/repos/moneyadviceservice/frontend/subscribers","subscription_url":"https://api.github.com/repos/moneyadviceservice/frontend/subscription","commits_url":"https://api.github.com/repos/moneyadviceservice/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/moneyadviceservice/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/moneyadviceservice/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/moneyadviceservice/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/moneyadviceservice/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/moneyadviceservice/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moneyadviceservice/frontend/merges","archive_url":"https://api.github.com/repos/moneyadviceservice/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moneyadviceservice/frontend/downloads","issues_url":"https://api.github.com/repos/moneyadviceservice/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/moneyadviceservice/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/moneyadviceservice/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/moneyadviceservice/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moneyadviceservice/frontend/labels{/name}","releases_url":"https://api.github.com/repos/moneyadviceservice/frontend/releases{/id}","deployments_url":"https://api.github.com/repos/moneyadviceservice/frontend/deployments","created_at":"2013-12-19T15:25:21Z","updated_at":"2016-02-20T03:58:05Z","pushed_at":"2016-03-24T11:31:59Z","git_url":"git://github.com/moneyadviceservice/frontend.git","ssh_url":"git@github.com:moneyadviceservice/frontend.git","clone_url":"https://github.com/moneyadviceservice/frontend.git","svn_url":"https://github.com/moneyadviceservice/frontend","homepage":"https://www.moneyadviceservice.org.uk  ","size":26702,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":19,"forks":7,"open_issues":19,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/moneyadviceservice/frontend/pulls/1425"},"html":{"href":"https://github.com/moneyadviceservice/frontend/pull/1425"},"issue":{"href":"https://api.github.com/repos/moneyadviceservice/frontend/issues/1425"},"comments":{"href":"https://api.github.com/repos/moneyadviceservice/frontend/issues/1425/comments"},"review_comments":{"href":"https://api.github.com/repos/moneyadviceservice/frontend/pulls/1425/comments"},"review_comment":{"href":"https://api.github.com/repos/moneyadviceservice/frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moneyadviceservice/frontend/pulls/1425/commits"},"statuses":{"href":"https://api.github.com/repos/moneyadviceservice/frontend/statuses/ab58cee7cafd860abdd233614cf279351cf4c82a"}}}}