{"action":"created","comment":{"url":"https://api.github.com/repos/pagseguro/ruby/pulls/comments/31475448","id":31475448,"diff_hunk":"@@ -8,91 +8,46 @@\n   it_assigns_attribute :interest_free\n \n   describe \".find\" do\n+    let(:request_serializer) { double(:request_serializer, to_params: params) }\n+    let(:params) { { amount: \"100.00\", card_brand: \"visa\" } }\n+    let(:request) { double(:request) }\n+    let(:response) { double(:response) }\n+\n+    before do\n+      expect(PagSeguro::Installment::RequestSerializer).to receive(:new)\n+        .with(params)","path":"spec/pagseguro/installment_spec.rb","position":11,"original_position":11,"commit_id":"c120083f546ad11f95f35aa98404d81409f8f1c6","original_commit_id":"c120083f546ad11f95f35aa98404d81409f8f1c6","user":{"login":"lucasrenan","id":114986,"avatar_url":"https://avatars.githubusercontent.com/u/114986?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasrenan","html_url":"https://github.com/lucasrenan","followers_url":"https://api.github.com/users/lucasrenan/followers","following_url":"https://api.github.com/users/lucasrenan/following{/other_user}","gists_url":"https://api.github.com/users/lucasrenan/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasrenan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasrenan/subscriptions","organizations_url":"https://api.github.com/users/lucasrenan/orgs","repos_url":"https://api.github.com/users/lucasrenan/repos","events_url":"https://api.github.com/users/lucasrenan/events{/privacy}","received_events_url":"https://api.github.com/users/lucasrenan/received_events","type":"User","site_admin":false},"body":"so, we can move everything to `it` blocks :)","created_at":"2015-06-01T22:03:03Z","updated_at":"2015-06-01T22:03:03Z","html_url":"https://github.com/pagseguro/ruby/pull/103#discussion_r31475448","pull_request_url":"https://api.github.com/repos/pagseguro/ruby/pulls/103","_links":{"self":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/comments/31475448"},"html":{"href":"https://github.com/pagseguro/ruby/pull/103#discussion_r31475448"},"pull_request":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/pagseguro/ruby/pulls/103","id":35891225,"html_url":"https://github.com/pagseguro/ruby/pull/103","diff_url":"https://github.com/pagseguro/ruby/pull/103.diff","patch_url":"https://github.com/pagseguro/ruby/pull/103.patch","issue_url":"https://api.github.com/repos/pagseguro/ruby/issues/103","number":103,"state":"closed","locked":false,"title":"Installment refactor","user":{"login":"lucasrenan","id":114986,"avatar_url":"https://avatars.githubusercontent.com/u/114986?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasrenan","html_url":"https://github.com/lucasrenan","followers_url":"https://api.github.com/users/lucasrenan/followers","following_url":"https://api.github.com/users/lucasrenan/following{/other_user}","gists_url":"https://api.github.com/users/lucasrenan/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasrenan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasrenan/subscriptions","organizations_url":"https://api.github.com/users/lucasrenan/orgs","repos_url":"https://api.github.com/users/lucasrenan/repos","events_url":"https://api.github.com/users/lucasrenan/events{/privacy}","received_events_url":"https://api.github.com/users/lucasrenan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-21T00:58:23Z","updated_at":"2015-06-01T22:03:03Z","closed_at":"2015-06-01T21:25:14Z","merged_at":"2015-06-01T21:25:14Z","merge_commit_sha":"f1d47c518fc88a6ceec49a4f05b1651d6a409c26","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pagseguro/ruby/pulls/103/commits","review_comments_url":"https://api.github.com/repos/pagseguro/ruby/pulls/103/comments","review_comment_url":"https://api.github.com/repos/pagseguro/ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pagseguro/ruby/issues/103/comments","statuses_url":"https://api.github.com/repos/pagseguro/ruby/statuses/c120083f546ad11f95f35aa98404d81409f8f1c6","head":{"label":"pagseguro:installments-refactor","ref":"installments-refactor","sha":"c120083f546ad11f95f35aa98404d81409f8f1c6","user":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"repo":{"id":9632355,"name":"ruby","full_name":"pagseguro/ruby","owner":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pagseguro/ruby","description":"Biblioteca de integração em Ruby","fork":false,"url":"https://api.github.com/repos/pagseguro/ruby","forks_url":"https://api.github.com/repos/pagseguro/ruby/forks","keys_url":"https://api.github.com/repos/pagseguro/ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pagseguro/ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pagseguro/ruby/teams","hooks_url":"https://api.github.com/repos/pagseguro/ruby/hooks","issue_events_url":"https://api.github.com/repos/pagseguro/ruby/issues/events{/number}","events_url":"https://api.github.com/repos/pagseguro/ruby/events","assignees_url":"https://api.github.com/repos/pagseguro/ruby/assignees{/user}","branches_url":"https://api.github.com/repos/pagseguro/ruby/branches{/branch}","tags_url":"https://api.github.com/repos/pagseguro/ruby/tags","blobs_url":"https://api.github.com/repos/pagseguro/ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pagseguro/ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pagseguro/ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/pagseguro/ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pagseguro/ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/pagseguro/ruby/languages","stargazers_url":"https://api.github.com/repos/pagseguro/ruby/stargazers","contributors_url":"https://api.github.com/repos/pagseguro/ruby/contributors","subscribers_url":"https://api.github.com/repos/pagseguro/ruby/subscribers","subscription_url":"https://api.github.com/repos/pagseguro/ruby/subscription","commits_url":"https://api.github.com/repos/pagseguro/ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/pagseguro/ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/pagseguro/ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/pagseguro/ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/pagseguro/ruby/contents/{+path}","compare_url":"https://api.github.com/repos/pagseguro/ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pagseguro/ruby/merges","archive_url":"https://api.github.com/repos/pagseguro/ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pagseguro/ruby/downloads","issues_url":"https://api.github.com/repos/pagseguro/ruby/issues{/number}","pulls_url":"https://api.github.com/repos/pagseguro/ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/pagseguro/ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/pagseguro/ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pagseguro/ruby/labels{/name}","releases_url":"https://api.github.com/repos/pagseguro/ruby/releases{/id}","created_at":"2013-04-23T20:14:45Z","updated_at":"2015-05-21T18:42:20Z","pushed_at":"2015-06-01T21:25:18Z","git_url":"git://github.com/pagseguro/ruby.git","ssh_url":"git@github.com:pagseguro/ruby.git","clone_url":"https://github.com/pagseguro/ruby.git","svn_url":"https://github.com/pagseguro/ruby","homepage":"","size":2573,"stargazers_count":50,"watchers_count":50,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":3,"forks":39,"open_issues":3,"watchers":50,"default_branch":"master"}},"base":{"label":"pagseguro:2.2.0-dev","ref":"2.2.0-dev","sha":"29ed4c0ebbbbcf1fcc3a3125497e0b39ec9a4fba","user":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"repo":{"id":9632355,"name":"ruby","full_name":"pagseguro/ruby","owner":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pagseguro/ruby","description":"Biblioteca de integração em Ruby","fork":false,"url":"https://api.github.com/repos/pagseguro/ruby","forks_url":"https://api.github.com/repos/pagseguro/ruby/forks","keys_url":"https://api.github.com/repos/pagseguro/ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pagseguro/ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pagseguro/ruby/teams","hooks_url":"https://api.github.com/repos/pagseguro/ruby/hooks","issue_events_url":"https://api.github.com/repos/pagseguro/ruby/issues/events{/number}","events_url":"https://api.github.com/repos/pagseguro/ruby/events","assignees_url":"https://api.github.com/repos/pagseguro/ruby/assignees{/user}","branches_url":"https://api.github.com/repos/pagseguro/ruby/branches{/branch}","tags_url":"https://api.github.com/repos/pagseguro/ruby/tags","blobs_url":"https://api.github.com/repos/pagseguro/ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pagseguro/ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pagseguro/ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/pagseguro/ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pagseguro/ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/pagseguro/ruby/languages","stargazers_url":"https://api.github.com/repos/pagseguro/ruby/stargazers","contributors_url":"https://api.github.com/repos/pagseguro/ruby/contributors","subscribers_url":"https://api.github.com/repos/pagseguro/ruby/subscribers","subscription_url":"https://api.github.com/repos/pagseguro/ruby/subscription","commits_url":"https://api.github.com/repos/pagseguro/ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/pagseguro/ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/pagseguro/ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/pagseguro/ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/pagseguro/ruby/contents/{+path}","compare_url":"https://api.github.com/repos/pagseguro/ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pagseguro/ruby/merges","archive_url":"https://api.github.com/repos/pagseguro/ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pagseguro/ruby/downloads","issues_url":"https://api.github.com/repos/pagseguro/ruby/issues{/number}","pulls_url":"https://api.github.com/repos/pagseguro/ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/pagseguro/ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/pagseguro/ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pagseguro/ruby/labels{/name}","releases_url":"https://api.github.com/repos/pagseguro/ruby/releases{/id}","created_at":"2013-04-23T20:14:45Z","updated_at":"2015-05-21T18:42:20Z","pushed_at":"2015-06-01T21:25:18Z","git_url":"git://github.com/pagseguro/ruby.git","ssh_url":"git@github.com:pagseguro/ruby.git","clone_url":"https://github.com/pagseguro/ruby.git","svn_url":"https://github.com/pagseguro/ruby","homepage":"","size":2573,"stargazers_count":50,"watchers_count":50,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":3,"forks":39,"open_issues":3,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/103"},"html":{"href":"https://github.com/pagseguro/ruby/pull/103"},"issue":{"href":"https://api.github.com/repos/pagseguro/ruby/issues/103"},"comments":{"href":"https://api.github.com/repos/pagseguro/ruby/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/pagseguro/ruby/statuses/c120083f546ad11f95f35aa98404d81409f8f1c6"}}}}