{"action":"created","comment":{"url":"https://api.github.com/repos/netguru/spree_payu_integration/pulls/comments/30190373","id":30190373,"diff_hunk":"@@ -0,0 +1,56 @@\n+require 'spec_helper'\n+\n+RSpec.describe PayuOrder, type: :lib do\n+  describe \"#params\" do\n+    let(:order) { OrderWalkthrough.up_to(:payment) }\n+    let(:order_url) { \"http://localhost:5252/order_url/1234\" }\n+    let(:notify_url) { \"http://localhost:5252/order_url/notify/1234\" }\n+    let(:continue_url) { \"http://localhost:5252/order_url/checkout/continue\" }\n+\n+    let(:current_store) { FactoryGirl.create(:store, name: \"Mój Spree Sklep\") }\n+\n+    before do\n+      I18n.locale = :pl\n+      allow(OpenPayU::Configuration).to receive(:merchant_pos_id).and_return(\"145228\")\n+      allow(Spree::Store).to receive(:current).and_return(current_store)\n+    end\n+\n+    subject { described_class.params(order, \"128.0.0.1\", order_url, notify_url, continue_url)}\n+\n+    it \"returns well structured hash from real order\" do\n+      expect(subject).to eq({","path":"spec/lib/payu_order_spec.rb","position":21,"original_position":21,"commit_id":"2b2514f53ea315f9b7cd6b7965e90bef45d40ac9","original_commit_id":"2b2514f53ea315f9b7cd6b7965e90bef45d40ac9","user":{"login":"netguru-hound","id":8405163,"avatar_url":"https://avatars.githubusercontent.com/u/8405163?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru-hound","html_url":"https://github.com/netguru-hound","followers_url":"https://api.github.com/users/netguru-hound/followers","following_url":"https://api.github.com/users/netguru-hound/following{/other_user}","gists_url":"https://api.github.com/users/netguru-hound/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru-hound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru-hound/subscriptions","organizations_url":"https://api.github.com/users/netguru-hound/orgs","repos_url":"https://api.github.com/users/netguru-hound/repos","events_url":"https://api.github.com/users/netguru-hound/events{/privacy}","received_events_url":"https://api.github.com/users/netguru-hound/received_events","type":"User","site_admin":false},"body":"Redundant curly braces around a hash parameter.","created_at":"2015-05-12T23:16:35Z","updated_at":"2015-05-12T23:16:35Z","html_url":"https://github.com/netguru/spree_payu_integration/pull/12#discussion_r30190373","pull_request_url":"https://api.github.com/repos/netguru/spree_payu_integration/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/netguru/spree_payu_integration/pulls/comments/30190373"},"html":{"href":"https://github.com/netguru/spree_payu_integration/pull/12#discussion_r30190373"},"pull_request":{"href":"https://api.github.com/repos/netguru/spree_payu_integration/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/netguru/spree_payu_integration/pulls/12","id":33583915,"html_url":"https://github.com/netguru/spree_payu_integration/pull/12","diff_url":"https://github.com/netguru/spree_payu_integration/pull/12.diff","patch_url":"https://github.com/netguru/spree_payu_integration/pull/12.patch","issue_url":"https://api.github.com/repos/netguru/spree_payu_integration/issues/12","number":12,"state":"open","locked":false,"title":"Spree version bump","user":{"login":"GraphicDesk","id":8121277,"avatar_url":"https://avatars.githubusercontent.com/u/8121277?v=3","gravatar_id":"","url":"https://api.github.com/users/GraphicDesk","html_url":"https://github.com/GraphicDesk","followers_url":"https://api.github.com/users/GraphicDesk/followers","following_url":"https://api.github.com/users/GraphicDesk/following{/other_user}","gists_url":"https://api.github.com/users/GraphicDesk/gists{/gist_id}","starred_url":"https://api.github.com/users/GraphicDesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GraphicDesk/subscriptions","organizations_url":"https://api.github.com/users/GraphicDesk/orgs","repos_url":"https://api.github.com/users/GraphicDesk/repos","events_url":"https://api.github.com/users/GraphicDesk/events{/privacy}","received_events_url":"https://api.github.com/users/GraphicDesk/received_events","type":"User","site_admin":false},"body":"Would be great to move to version 3 of Spree","created_at":"2015-04-17T21:26:54Z","updated_at":"2015-05-12T23:16:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1942cced16d273cb074453c1f7e3ed0de55cb147","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/netguru/spree_payu_integration/pulls/12/commits","review_comments_url":"https://api.github.com/repos/netguru/spree_payu_integration/pulls/12/comments","review_comment_url":"https://api.github.com/repos/netguru/spree_payu_integration/pulls/comments{/number}","comments_url":"https://api.github.com/repos/netguru/spree_payu_integration/issues/12/comments","statuses_url":"https://api.github.com/repos/netguru/spree_payu_integration/statuses/2b2514f53ea315f9b7cd6b7965e90bef45d40ac9","head":{"label":"RaVbaker:spree_version_bump","ref":"spree_version_bump","sha":"2b2514f53ea315f9b7cd6b7965e90bef45d40ac9","user":{"login":"RaVbaker","id":56023,"avatar_url":"https://avatars.githubusercontent.com/u/56023?v=3","gravatar_id":"","url":"https://api.github.com/users/RaVbaker","html_url":"https://github.com/RaVbaker","followers_url":"https://api.github.com/users/RaVbaker/followers","following_url":"https://api.github.com/users/RaVbaker/following{/other_user}","gists_url":"https://api.github.com/users/RaVbaker/gists{/gist_id}","starred_url":"https://api.github.com/users/RaVbaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaVbaker/subscriptions","organizations_url":"https://api.github.com/users/RaVbaker/orgs","repos_url":"https://api.github.com/users/RaVbaker/repos","events_url":"https://api.github.com/users/RaVbaker/events{/privacy}","received_events_url":"https://api.github.com/users/RaVbaker/received_events","type":"User","site_admin":false},"repo":{"id":32149080,"name":"spree_payu_integration","full_name":"RaVbaker/spree_payu_integration","owner":{"login":"RaVbaker","id":56023,"avatar_url":"https://avatars.githubusercontent.com/u/56023?v=3","gravatar_id":"","url":"https://api.github.com/users/RaVbaker","html_url":"https://github.com/RaVbaker","followers_url":"https://api.github.com/users/RaVbaker/followers","following_url":"https://api.github.com/users/RaVbaker/following{/other_user}","gists_url":"https://api.github.com/users/RaVbaker/gists{/gist_id}","starred_url":"https://api.github.com/users/RaVbaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaVbaker/subscriptions","organizations_url":"https://api.github.com/users/RaVbaker/orgs","repos_url":"https://api.github.com/users/RaVbaker/repos","events_url":"https://api.github.com/users/RaVbaker/events{/privacy}","received_events_url":"https://api.github.com/users/RaVbaker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RaVbaker/spree_payu_integration","description":"Spree integration with OpenPayU payment service.","fork":true,"url":"https://api.github.com/repos/RaVbaker/spree_payu_integration","forks_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/forks","keys_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/teams","hooks_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/hooks","issue_events_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/issues/events{/number}","events_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/events","assignees_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/assignees{/user}","branches_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/branches{/branch}","tags_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/tags","blobs_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/statuses/{sha}","languages_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/languages","stargazers_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/stargazers","contributors_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/contributors","subscribers_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/subscribers","subscription_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/subscription","commits_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/contents/{+path}","compare_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/merges","archive_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/downloads","issues_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/issues{/number}","pulls_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/pulls{/number}","milestones_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/milestones{/number}","notifications_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/labels{/name}","releases_url":"https://api.github.com/repos/RaVbaker/spree_payu_integration/releases{/id}","created_at":"2015-03-13T10:10:06Z","updated_at":"2015-03-13T10:10:07Z","pushed_at":"2015-05-12T23:16:24Z","git_url":"git://github.com/RaVbaker/spree_payu_integration.git","ssh_url":"git@github.com:RaVbaker/spree_payu_integration.git","clone_url":"https://github.com/RaVbaker/spree_payu_integration.git","svn_url":"https://github.com/RaVbaker/spree_payu_integration","homepage":"https://netguru.co/spree","size":180,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"netguru:master","ref":"master","sha":"e876559c10c6d6fbc7642a10a71796b9c926d1c7","user":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":21690595,"name":"spree_payu_integration","full_name":"netguru/spree_payu_integration","owner":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netguru/spree_payu_integration","description":"Spree integration with OpenPayU payment service.","fork":false,"url":"https://api.github.com/repos/netguru/spree_payu_integration","forks_url":"https://api.github.com/repos/netguru/spree_payu_integration/forks","keys_url":"https://api.github.com/repos/netguru/spree_payu_integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/spree_payu_integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/spree_payu_integration/teams","hooks_url":"https://api.github.com/repos/netguru/spree_payu_integration/hooks","issue_events_url":"https://api.github.com/repos/netguru/spree_payu_integration/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/spree_payu_integration/events","assignees_url":"https://api.github.com/repos/netguru/spree_payu_integration/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/spree_payu_integration/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/spree_payu_integration/tags","blobs_url":"https://api.github.com/repos/netguru/spree_payu_integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/spree_payu_integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/spree_payu_integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/spree_payu_integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/spree_payu_integration/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/spree_payu_integration/languages","stargazers_url":"https://api.github.com/repos/netguru/spree_payu_integration/stargazers","contributors_url":"https://api.github.com/repos/netguru/spree_payu_integration/contributors","subscribers_url":"https://api.github.com/repos/netguru/spree_payu_integration/subscribers","subscription_url":"https://api.github.com/repos/netguru/spree_payu_integration/subscription","commits_url":"https://api.github.com/repos/netguru/spree_payu_integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/spree_payu_integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/spree_payu_integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/spree_payu_integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/spree_payu_integration/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/spree_payu_integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/spree_payu_integration/merges","archive_url":"https://api.github.com/repos/netguru/spree_payu_integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/spree_payu_integration/downloads","issues_url":"https://api.github.com/repos/netguru/spree_payu_integration/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/spree_payu_integration/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/spree_payu_integration/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/spree_payu_integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/spree_payu_integration/labels{/name}","releases_url":"https://api.github.com/repos/netguru/spree_payu_integration/releases{/id}","created_at":"2014-07-10T10:38:00Z","updated_at":"2015-05-09T22:43:53Z","pushed_at":"2015-05-12T23:16:24Z","git_url":"git://github.com/netguru/spree_payu_integration.git","ssh_url":"git@github.com:netguru/spree_payu_integration.git","clone_url":"https://github.com/netguru/spree_payu_integration.git","svn_url":"https://github.com/netguru/spree_payu_integration","homepage":"https://netguru.co/spree","size":516,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":4,"forks":22,"open_issues":4,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/netguru/spree_payu_integration/pulls/12"},"html":{"href":"https://github.com/netguru/spree_payu_integration/pull/12"},"issue":{"href":"https://api.github.com/repos/netguru/spree_payu_integration/issues/12"},"comments":{"href":"https://api.github.com/repos/netguru/spree_payu_integration/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/netguru/spree_payu_integration/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/netguru/spree_payu_integration/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/netguru/spree_payu_integration/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/netguru/spree_payu_integration/statuses/2b2514f53ea315f9b7cd6b7965e90bef45d40ac9"}}}}