{"action":"created","comment":{"url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls/comments/42178336","id":42178336,"diff_hunk":"@@ -60,4 +60,107 @@\n       end\n     end\n   end\n+\n+  describe \"#get_new\", vcr: true do\n+    context \"when success\" do\n+      subject { client.entities.get_new }\n+\n+      it \"returns empty entity\" do\n+        expect(subject.class).to eq(Myfinance::Entities::Entity)\n+        expect(subject.id).to be_nil\n+        expect(subject.name).to be_nil\n+        expect(subject.account_id).to eq(3613)\n+        expect(subject.charging_uuid).to be_nil\n+        expect(subject.created_at).to be_nil\n+        expect(subject.default_in_menu).to be_falsy\n+        expect(subject.deleted_at).to be_nil\n+        expect(subject.federation_subscription_number).to be_nil\n+        expect(subject.imported_from_sync_at).to be_nil\n+        expect(subject.updated_at).to be_nil\n+      end\n+    end\n+\n+    context \"when not found\" do\n+      let(:client) { Myfinance.client('') }\n+      subject { client.entities.get_new }\n+\n+      it \"raises NotFound\" do\n+        expect{ subject }.to raise_error(Myfinance::RequestError)\n+      end\n+    end\n+  end\n+\n+  describe \"#create\", vcr: true do\n+    let(:params) do\n+      {\n+        entity: {\n+          name: \"Finanças\"\n+        }\n+      }\n+    end\n+\n+    context \"when success\" do\n+      subject { client.entities.create(params) }\n+\n+      it \"returns a created entity\" do\n+        expect(subject.class).to eq(Myfinance::Entities::Entity)\n+        expect(subject.id).to eq(3828)\n+        expect(subject.name).to eq(\"Finanças\")\n+        expect(subject.account_id).to eq(3613)\n+        expect(subject.charging_uuid).to be_nil\n+        expect(subject.created_at).to eq(DateTime.parse(\"2015-10-15T16:11:08-03:00\"))","path":"spec/lib/myfinance/resources/entity_spec.rb","position":52,"original_position":52,"commit_id":"a3554baa4876eee46cb9f19b2d916c5e99625770","original_commit_id":"a3554baa4876eee46cb9f19b2d916c5e99625770","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Do not use `DateTime.parse` without zone. Use one of `Time.zone.parse`, `DateTime.parse.current`, `DateTime.parse.in_time_zone`, `DateTime.parse.utc`, `DateTime.parse.getlocal`, `DateTime.parse.iso8601`, `DateTime.parse.jisx0301`, `DateTime.parse.rfc3339`, `DateTime.parse.to_i`, `DateTime.parse.to_f` instead.","created_at":"2015-10-15T20:49:11Z","updated_at":"2015-10-15T20:49:11Z","html_url":"https://github.com/myfreecomm/myfinance-client-ruby/pull/16#discussion_r42178336","pull_request_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls/comments/42178336"},"html":{"href":"https://github.com/myfreecomm/myfinance-client-ruby/pull/16#discussion_r42178336"},"pull_request":{"href":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls/16","id":47839684,"html_url":"https://github.com/myfreecomm/myfinance-client-ruby/pull/16","diff_url":"https://github.com/myfreecomm/myfinance-client-ruby/pull/16.diff","patch_url":"https://github.com/myfreecomm/myfinance-client-ruby/pull/16.patch","issue_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/issues/16","number":16,"state":"open","locked":false,"title":"Complement API","user":{"login":"vagnerzampieri","id":444419,"avatar_url":"https://avatars.githubusercontent.com/u/444419?v=3","gravatar_id":"","url":"https://api.github.com/users/vagnerzampieri","html_url":"https://github.com/vagnerzampieri","followers_url":"https://api.github.com/users/vagnerzampieri/followers","following_url":"https://api.github.com/users/vagnerzampieri/following{/other_user}","gists_url":"https://api.github.com/users/vagnerzampieri/gists{/gist_id}","starred_url":"https://api.github.com/users/vagnerzampieri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vagnerzampieri/subscriptions","organizations_url":"https://api.github.com/users/vagnerzampieri/orgs","repos_url":"https://api.github.com/users/vagnerzampieri/repos","events_url":"https://api.github.com/users/vagnerzampieri/events{/privacy}","received_events_url":"https://api.github.com/users/vagnerzampieri/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-15T20:49:07Z","updated_at":"2015-10-15T20:49:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"effdd7d487a3236c6faef533c397927ba9061cf0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls/16/commits","review_comments_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls/16/comments","review_comment_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/issues/16/comments","statuses_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/statuses/a3554baa4876eee46cb9f19b2d916c5e99625770","head":{"label":"myfreecomm:feature-complement-api","ref":"feature-complement-api","sha":"a3554baa4876eee46cb9f19b2d916c5e99625770","user":{"login":"myfreecomm","id":86764,"avatar_url":"https://avatars.githubusercontent.com/u/86764?v=3","gravatar_id":"","url":"https://api.github.com/users/myfreecomm","html_url":"https://github.com/myfreecomm","followers_url":"https://api.github.com/users/myfreecomm/followers","following_url":"https://api.github.com/users/myfreecomm/following{/other_user}","gists_url":"https://api.github.com/users/myfreecomm/gists{/gist_id}","starred_url":"https://api.github.com/users/myfreecomm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myfreecomm/subscriptions","organizations_url":"https://api.github.com/users/myfreecomm/orgs","repos_url":"https://api.github.com/users/myfreecomm/repos","events_url":"https://api.github.com/users/myfreecomm/events{/privacy}","received_events_url":"https://api.github.com/users/myfreecomm/received_events","type":"Organization","site_admin":false},"repo":{"id":8864909,"name":"myfinance-client-ruby","full_name":"myfreecomm/myfinance-client-ruby","owner":{"login":"myfreecomm","id":86764,"avatar_url":"https://avatars.githubusercontent.com/u/86764?v=3","gravatar_id":"","url":"https://api.github.com/users/myfreecomm","html_url":"https://github.com/myfreecomm","followers_url":"https://api.github.com/users/myfreecomm/followers","following_url":"https://api.github.com/users/myfreecomm/following{/other_user}","gists_url":"https://api.github.com/users/myfreecomm/gists{/gist_id}","starred_url":"https://api.github.com/users/myfreecomm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myfreecomm/subscriptions","organizations_url":"https://api.github.com/users/myfreecomm/orgs","repos_url":"https://api.github.com/users/myfreecomm/repos","events_url":"https://api.github.com/users/myfreecomm/events{/privacy}","received_events_url":"https://api.github.com/users/myfreecomm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/myfreecomm/myfinance-client-ruby","description":"A Ruby client for MyFinance's REST API","fork":false,"url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby","forks_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/forks","keys_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/teams","hooks_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/hooks","issue_events_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/events","assignees_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/tags","blobs_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/languages","stargazers_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/stargazers","contributors_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/contributors","subscribers_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/subscribers","subscription_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/subscription","commits_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/merges","archive_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/downloads","issues_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/labels{/name}","releases_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/releases{/id}","created_at":"2013-03-18T21:42:53Z","updated_at":"2015-07-29T13:39:50Z","pushed_at":"2015-10-15T20:49:07Z","git_url":"git://github.com/myfreecomm/myfinance-client-ruby.git","ssh_url":"git@github.com:myfreecomm/myfinance-client-ruby.git","clone_url":"https://github.com/myfreecomm/myfinance-client-ruby.git","svn_url":"https://github.com/myfreecomm/myfinance-client-ruby","homepage":null,"size":396,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"myfreecomm:master","ref":"master","sha":"ee4047e265043bf38b6a6c782ec99993650806d5","user":{"login":"myfreecomm","id":86764,"avatar_url":"https://avatars.githubusercontent.com/u/86764?v=3","gravatar_id":"","url":"https://api.github.com/users/myfreecomm","html_url":"https://github.com/myfreecomm","followers_url":"https://api.github.com/users/myfreecomm/followers","following_url":"https://api.github.com/users/myfreecomm/following{/other_user}","gists_url":"https://api.github.com/users/myfreecomm/gists{/gist_id}","starred_url":"https://api.github.com/users/myfreecomm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myfreecomm/subscriptions","organizations_url":"https://api.github.com/users/myfreecomm/orgs","repos_url":"https://api.github.com/users/myfreecomm/repos","events_url":"https://api.github.com/users/myfreecomm/events{/privacy}","received_events_url":"https://api.github.com/users/myfreecomm/received_events","type":"Organization","site_admin":false},"repo":{"id":8864909,"name":"myfinance-client-ruby","full_name":"myfreecomm/myfinance-client-ruby","owner":{"login":"myfreecomm","id":86764,"avatar_url":"https://avatars.githubusercontent.com/u/86764?v=3","gravatar_id":"","url":"https://api.github.com/users/myfreecomm","html_url":"https://github.com/myfreecomm","followers_url":"https://api.github.com/users/myfreecomm/followers","following_url":"https://api.github.com/users/myfreecomm/following{/other_user}","gists_url":"https://api.github.com/users/myfreecomm/gists{/gist_id}","starred_url":"https://api.github.com/users/myfreecomm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myfreecomm/subscriptions","organizations_url":"https://api.github.com/users/myfreecomm/orgs","repos_url":"https://api.github.com/users/myfreecomm/repos","events_url":"https://api.github.com/users/myfreecomm/events{/privacy}","received_events_url":"https://api.github.com/users/myfreecomm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/myfreecomm/myfinance-client-ruby","description":"A Ruby client for MyFinance's REST API","fork":false,"url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby","forks_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/forks","keys_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/teams","hooks_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/hooks","issue_events_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/events","assignees_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/tags","blobs_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/languages","stargazers_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/stargazers","contributors_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/contributors","subscribers_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/subscribers","subscription_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/subscription","commits_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/merges","archive_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/downloads","issues_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/labels{/name}","releases_url":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/releases{/id}","created_at":"2013-03-18T21:42:53Z","updated_at":"2015-07-29T13:39:50Z","pushed_at":"2015-10-15T20:49:07Z","git_url":"git://github.com/myfreecomm/myfinance-client-ruby.git","ssh_url":"git@github.com:myfreecomm/myfinance-client-ruby.git","clone_url":"https://github.com/myfreecomm/myfinance-client-ruby.git","svn_url":"https://github.com/myfreecomm/myfinance-client-ruby","homepage":null,"size":396,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls/16"},"html":{"href":"https://github.com/myfreecomm/myfinance-client-ruby/pull/16"},"issue":{"href":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/issues/16"},"comments":{"href":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/myfreecomm/myfinance-client-ruby/statuses/a3554baa4876eee46cb9f19b2d916c5e99625770"}}}}