{"action":"created","comment":{"url":"https://api.github.com/repos/Shopify/offsite_payments/pulls/comments/23804519","id":23804519,"diff_hunk":"@@ -0,0 +1,114 @@\n+require 'test_helper'\n+\n+class YuupayHelperTest < Test::Unit::TestCase\n+  include OffsitePayments::Integrations\n+\n+  def setup\n+    @order = 'order-500'\n+    @account = 'zork'\n+    @key = 'TO78ghHCfBQ6ZBw2Q2fJ3wRwGkWkUHVs'\n+    @amount = 123.45\n+    @currency = 'USD'\n+    @test = false\n+    @country = 'US'\n+    @account_name = 'Widgets Inc'\n+    @transaction_type = 'sale'\n+    @options = {:amount => @amount,\n+                :currency => @currency,\n+                :test => @test,\n+                :credential2 => @key,\n+                :country => @country,\n+                :account_name => @account_name,\n+                :transaction_type => @transaction_type}\n+    @helper = Yuupay::Helper.new(@order, @account, @options)\n+  end\n+\n+  def test_forward_url\n+    assert_equal @helper.forward_url, @helper.credential_based_url","path":"test/unit/integrations/yuupay/yuupay_helper_test.rb","position":27,"original_position":27,"commit_id":"3849b4e36e06e907e1ad420d9a1f9461f47635b5","original_commit_id":"3849b4e36e06e907e1ad420d9a1f9461f47635b5","user":{"login":"j-mutter","id":1273044,"avatar_url":"https://avatars.githubusercontent.com/u/1273044?v=3","gravatar_id":"","url":"https://api.github.com/users/j-mutter","html_url":"https://github.com/j-mutter","followers_url":"https://api.github.com/users/j-mutter/followers","following_url":"https://api.github.com/users/j-mutter/following{/other_user}","gists_url":"https://api.github.com/users/j-mutter/gists{/gist_id}","starred_url":"https://api.github.com/users/j-mutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-mutter/subscriptions","organizations_url":"https://api.github.com/users/j-mutter/orgs","repos_url":"https://api.github.com/users/j-mutter/repos","events_url":"https://api.github.com/users/j-mutter/events{/privacy}","received_events_url":"https://api.github.com/users/j-mutter/received_events","type":"User","site_admin":false},"body":"I'm not sure how I feel about this test. Is there a reason we expect these two different methods to return identical urls?","created_at":"2015-01-29T21:32:49Z","updated_at":"2015-01-29T21:32:49Z","html_url":"https://github.com/Shopify/offsite_payments/pull/116#discussion_r23804519","pull_request_url":"https://api.github.com/repos/Shopify/offsite_payments/pulls/116","_links":{"self":{"href":"https://api.github.com/repos/Shopify/offsite_payments/pulls/comments/23804519"},"html":{"href":"https://github.com/Shopify/offsite_payments/pull/116#discussion_r23804519"},"pull_request":{"href":"https://api.github.com/repos/Shopify/offsite_payments/pulls/116"}}},"pull_request":{"url":"https://api.github.com/repos/Shopify/offsite_payments/pulls/116","id":28002869,"html_url":"https://github.com/Shopify/offsite_payments/pull/116","diff_url":"https://github.com/Shopify/offsite_payments/pull/116.diff","patch_url":"https://github.com/Shopify/offsite_payments/pull/116.patch","issue_url":"https://api.github.com/repos/Shopify/offsite_payments/issues/116","number":116,"state":"open","locked":false,"title":"Adding Yuupay gateway as universal","user":{"login":"andrewpaliga","id":2962326,"avatar_url":"https://avatars.githubusercontent.com/u/2962326?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewpaliga","html_url":"https://github.com/andrewpaliga","followers_url":"https://api.github.com/users/andrewpaliga/followers","following_url":"https://api.github.com/users/andrewpaliga/following{/other_user}","gists_url":"https://api.github.com/users/andrewpaliga/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewpaliga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewpaliga/subscriptions","organizations_url":"https://api.github.com/users/andrewpaliga/orgs","repos_url":"https://api.github.com/users/andrewpaliga/repos","events_url":"https://api.github.com/users/andrewpaliga/events{/privacy}","received_events_url":"https://api.github.com/users/andrewpaliga/received_events","type":"User","site_admin":false},"body":"- Add yuupay (universal) gateway in separate file inheriting universal \r\n- Add unit tests for yuupay helper (only class that changes)\r\n\r\n@bizla @j-mutter ","created_at":"2015-01-26T02:20:29Z","updated_at":"2015-01-29T21:32:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c1ee31d85508829a8d79c28916fe07afeabf6ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/offsite_payments/pulls/116/commits","review_comments_url":"https://api.github.com/repos/Shopify/offsite_payments/pulls/116/comments","review_comment_url":"https://api.github.com/repos/Shopify/offsite_payments/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Shopify/offsite_payments/issues/116/comments","statuses_url":"https://api.github.com/repos/Shopify/offsite_payments/statuses/3849b4e36e06e907e1ad420d9a1f9461f47635b5","head":{"label":"Shopify:add_yuupay","ref":"add_yuupay","sha":"3849b4e36e06e907e1ad420d9a1f9461f47635b5","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":20425338,"name":"offsite_payments","full_name":"Shopify/offsite_payments","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/offsite_payments","description":"A simple and unified API to handle dozens of different offsite payment pages.","fork":false,"url":"https://api.github.com/repos/Shopify/offsite_payments","forks_url":"https://api.github.com/repos/Shopify/offsite_payments/forks","keys_url":"https://api.github.com/repos/Shopify/offsite_payments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/offsite_payments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/offsite_payments/teams","hooks_url":"https://api.github.com/repos/Shopify/offsite_payments/hooks","issue_events_url":"https://api.github.com/repos/Shopify/offsite_payments/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/offsite_payments/events","assignees_url":"https://api.github.com/repos/Shopify/offsite_payments/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/offsite_payments/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/offsite_payments/tags","blobs_url":"https://api.github.com/repos/Shopify/offsite_payments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/offsite_payments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/offsite_payments/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/offsite_payments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/offsite_payments/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/offsite_payments/languages","stargazers_url":"https://api.github.com/repos/Shopify/offsite_payments/stargazers","contributors_url":"https://api.github.com/repos/Shopify/offsite_payments/contributors","subscribers_url":"https://api.github.com/repos/Shopify/offsite_payments/subscribers","subscription_url":"https://api.github.com/repos/Shopify/offsite_payments/subscription","commits_url":"https://api.github.com/repos/Shopify/offsite_payments/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/offsite_payments/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/offsite_payments/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/offsite_payments/issues/comments/{number}","contents_url":"https://api.github.com/repos/Shopify/offsite_payments/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/offsite_payments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/offsite_payments/merges","archive_url":"https://api.github.com/repos/Shopify/offsite_payments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/offsite_payments/downloads","issues_url":"https://api.github.com/repos/Shopify/offsite_payments/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/offsite_payments/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/offsite_payments/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/offsite_payments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/offsite_payments/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/offsite_payments/releases{/id}","created_at":"2014-06-03T01:11:00Z","updated_at":"2015-01-29T19:03:10Z","pushed_at":"2015-01-29T19:29:11Z","git_url":"git://github.com/Shopify/offsite_payments.git","ssh_url":"git@github.com:Shopify/offsite_payments.git","clone_url":"https://github.com/Shopify/offsite_payments.git","svn_url":"https://github.com/Shopify/offsite_payments","homepage":"","size":1640,"stargazers_count":34,"watchers_count":34,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":60,"forks":56,"open_issues":60,"watchers":34,"default_branch":"master"}},"base":{"label":"Shopify:master","ref":"master","sha":"401c709c38d2f6f4d8c69092fce76d744d54ce1c","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":20425338,"name":"offsite_payments","full_name":"Shopify/offsite_payments","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/offsite_payments","description":"A simple and unified API to handle dozens of different offsite payment pages.","fork":false,"url":"https://api.github.com/repos/Shopify/offsite_payments","forks_url":"https://api.github.com/repos/Shopify/offsite_payments/forks","keys_url":"https://api.github.com/repos/Shopify/offsite_payments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/offsite_payments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/offsite_payments/teams","hooks_url":"https://api.github.com/repos/Shopify/offsite_payments/hooks","issue_events_url":"https://api.github.com/repos/Shopify/offsite_payments/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/offsite_payments/events","assignees_url":"https://api.github.com/repos/Shopify/offsite_payments/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/offsite_payments/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/offsite_payments/tags","blobs_url":"https://api.github.com/repos/Shopify/offsite_payments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/offsite_payments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/offsite_payments/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/offsite_payments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/offsite_payments/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/offsite_payments/languages","stargazers_url":"https://api.github.com/repos/Shopify/offsite_payments/stargazers","contributors_url":"https://api.github.com/repos/Shopify/offsite_payments/contributors","subscribers_url":"https://api.github.com/repos/Shopify/offsite_payments/subscribers","subscription_url":"https://api.github.com/repos/Shopify/offsite_payments/subscription","commits_url":"https://api.github.com/repos/Shopify/offsite_payments/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/offsite_payments/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/offsite_payments/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/offsite_payments/issues/comments/{number}","contents_url":"https://api.github.com/repos/Shopify/offsite_payments/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/offsite_payments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/offsite_payments/merges","archive_url":"https://api.github.com/repos/Shopify/offsite_payments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/offsite_payments/downloads","issues_url":"https://api.github.com/repos/Shopify/offsite_payments/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/offsite_payments/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/offsite_payments/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/offsite_payments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/offsite_payments/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/offsite_payments/releases{/id}","created_at":"2014-06-03T01:11:00Z","updated_at":"2015-01-29T19:03:10Z","pushed_at":"2015-01-29T19:29:11Z","git_url":"git://github.com/Shopify/offsite_payments.git","ssh_url":"git@github.com:Shopify/offsite_payments.git","clone_url":"https://github.com/Shopify/offsite_payments.git","svn_url":"https://github.com/Shopify/offsite_payments","homepage":"","size":1640,"stargazers_count":34,"watchers_count":34,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":60,"forks":56,"open_issues":60,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/offsite_payments/pulls/116"},"html":{"href":"https://github.com/Shopify/offsite_payments/pull/116"},"issue":{"href":"https://api.github.com/repos/Shopify/offsite_payments/issues/116"},"comments":{"href":"https://api.github.com/repos/Shopify/offsite_payments/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/offsite_payments/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/offsite_payments/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Shopify/offsite_payments/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/offsite_payments/statuses/3849b4e36e06e907e1ad420d9a1f9461f47635b5"}}}}