{"action":"created","comment":{"url":"https://api.github.com/repos/cubesystems/releaf/pulls/comments/31889121","id":31889121,"diff_hunk":"@@ -165,6 +176,29 @@ def base_validation\n     end\n \n     it \"adds error to errors\" do\n+      expected_result = {\n+        'resource[title]' => [\n+          {\n+            error_code: 'test error',\n+            message: 'Error message',\n+            full_message: 'Book with id null has error \"error message\" on attribute \"title\"'\n+          },\n+          {\n+            error_code: 'test error',\n+            message: 'Jet another error message',\n+            full_message: 'Book with id null has error \"jet another error message\" on attribute \"title\"'\n+          }\n+        ],\n+        'resource[author_id]' => [\n+          {\n+            error_code: 'invalid',\n+            message: 'Invalid author',\n+            full_message: 'Book with id null has error \"invalid author\" on attribute \"author\"',","path":"releaf-core/spec/lib/error_formatter_spec.rb","position":84,"original_position":84,"commit_id":"a01cc7825cbaa6e617c5dd9a0413937d043add6b","original_commit_id":"a01cc7825cbaa6e617c5dd9a0413937d043add6b","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":"Line is too long. [95/80]","created_at":"2015-06-08T06:29:41Z","updated_at":"2015-06-08T06:29:41Z","html_url":"https://github.com/cubesystems/releaf/pull/213#discussion_r31889121","pull_request_url":"https://api.github.com/repos/cubesystems/releaf/pulls/213","_links":{"self":{"href":"https://api.github.com/repos/cubesystems/releaf/pulls/comments/31889121"},"html":{"href":"https://github.com/cubesystems/releaf/pull/213#discussion_r31889121"},"pull_request":{"href":"https://api.github.com/repos/cubesystems/releaf/pulls/213"}}},"pull_request":{"url":"https://api.github.com/repos/cubesystems/releaf/pulls/213","id":37125105,"html_url":"https://github.com/cubesystems/releaf/pull/213","diff_url":"https://github.com/cubesystems/releaf/pull/213.diff","patch_url":"https://github.com/cubesystems/releaf/pull/213.patch","issue_url":"https://api.github.com/repos/cubesystems/releaf/issues/213","number":213,"state":"open","locked":false,"title":"Improve error messages on form","user":{"login":"graudeejs","id":1020124,"avatar_url":"https://avatars.githubusercontent.com/u/1020124?v=3","gravatar_id":"","url":"https://api.github.com/users/graudeejs","html_url":"https://github.com/graudeejs","followers_url":"https://api.github.com/users/graudeejs/followers","following_url":"https://api.github.com/users/graudeejs/following{/other_user}","gists_url":"https://api.github.com/users/graudeejs/gists{/gist_id}","starred_url":"https://api.github.com/users/graudeejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graudeejs/subscriptions","organizations_url":"https://api.github.com/users/graudeejs/orgs","repos_url":"https://api.github.com/users/graudeejs/repos","events_url":"https://api.github.com/users/graudeejs/events{/privacy}","received_events_url":"https://api.github.com/users/graudeejs/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-08T06:29:33Z","updated_at":"2015-06-08T06:29:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c6f39cf9a4d7bcad81a992127931ea252d9ae0c","assignee":{"login":"graudeejs","id":1020124,"avatar_url":"https://avatars.githubusercontent.com/u/1020124?v=3","gravatar_id":"","url":"https://api.github.com/users/graudeejs","html_url":"https://github.com/graudeejs","followers_url":"https://api.github.com/users/graudeejs/followers","following_url":"https://api.github.com/users/graudeejs/following{/other_user}","gists_url":"https://api.github.com/users/graudeejs/gists{/gist_id}","starred_url":"https://api.github.com/users/graudeejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graudeejs/subscriptions","organizations_url":"https://api.github.com/users/graudeejs/orgs","repos_url":"https://api.github.com/users/graudeejs/repos","events_url":"https://api.github.com/users/graudeejs/events{/privacy}","received_events_url":"https://api.github.com/users/graudeejs/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/cubesystems/releaf/pulls/213/commits","review_comments_url":"https://api.github.com/repos/cubesystems/releaf/pulls/213/comments","review_comment_url":"https://api.github.com/repos/cubesystems/releaf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cubesystems/releaf/issues/213/comments","statuses_url":"https://api.github.com/repos/cubesystems/releaf/statuses/a01cc7825cbaa6e617c5dd9a0413937d043add6b","head":{"label":"cubesystems:better_error_messages","ref":"better_error_messages","sha":"a01cc7825cbaa6e617c5dd9a0413937d043add6b","user":{"login":"cubesystems","id":686284,"avatar_url":"https://avatars.githubusercontent.com/u/686284?v=3","gravatar_id":"","url":"https://api.github.com/users/cubesystems","html_url":"https://github.com/cubesystems","followers_url":"https://api.github.com/users/cubesystems/followers","following_url":"https://api.github.com/users/cubesystems/following{/other_user}","gists_url":"https://api.github.com/users/cubesystems/gists{/gist_id}","starred_url":"https://api.github.com/users/cubesystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubesystems/subscriptions","organizations_url":"https://api.github.com/users/cubesystems/orgs","repos_url":"https://api.github.com/users/cubesystems/repos","events_url":"https://api.github.com/users/cubesystems/events{/privacy}","received_events_url":"https://api.github.com/users/cubesystems/received_events","type":"Organization","site_admin":false},"repo":{"id":7483101,"name":"releaf","full_name":"cubesystems/releaf","owner":{"login":"cubesystems","id":686284,"avatar_url":"https://avatars.githubusercontent.com/u/686284?v=3","gravatar_id":"","url":"https://api.github.com/users/cubesystems","html_url":"https://github.com/cubesystems","followers_url":"https://api.github.com/users/cubesystems/followers","following_url":"https://api.github.com/users/cubesystems/following{/other_user}","gists_url":"https://api.github.com/users/cubesystems/gists{/gist_id}","starred_url":"https://api.github.com/users/cubesystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubesystems/subscriptions","organizations_url":"https://api.github.com/users/cubesystems/orgs","repos_url":"https://api.github.com/users/cubesystems/repos","events_url":"https://api.github.com/users/cubesystems/events{/privacy}","received_events_url":"https://api.github.com/users/cubesystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cubesystems/releaf","description":"Administration interface for Ruby on Rails","fork":false,"url":"https://api.github.com/repos/cubesystems/releaf","forks_url":"https://api.github.com/repos/cubesystems/releaf/forks","keys_url":"https://api.github.com/repos/cubesystems/releaf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cubesystems/releaf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cubesystems/releaf/teams","hooks_url":"https://api.github.com/repos/cubesystems/releaf/hooks","issue_events_url":"https://api.github.com/repos/cubesystems/releaf/issues/events{/number}","events_url":"https://api.github.com/repos/cubesystems/releaf/events","assignees_url":"https://api.github.com/repos/cubesystems/releaf/assignees{/user}","branches_url":"https://api.github.com/repos/cubesystems/releaf/branches{/branch}","tags_url":"https://api.github.com/repos/cubesystems/releaf/tags","blobs_url":"https://api.github.com/repos/cubesystems/releaf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cubesystems/releaf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cubesystems/releaf/git/refs{/sha}","trees_url":"https://api.github.com/repos/cubesystems/releaf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cubesystems/releaf/statuses/{sha}","languages_url":"https://api.github.com/repos/cubesystems/releaf/languages","stargazers_url":"https://api.github.com/repos/cubesystems/releaf/stargazers","contributors_url":"https://api.github.com/repos/cubesystems/releaf/contributors","subscribers_url":"https://api.github.com/repos/cubesystems/releaf/subscribers","subscription_url":"https://api.github.com/repos/cubesystems/releaf/subscription","commits_url":"https://api.github.com/repos/cubesystems/releaf/commits{/sha}","git_commits_url":"https://api.github.com/repos/cubesystems/releaf/git/commits{/sha}","comments_url":"https://api.github.com/repos/cubesystems/releaf/comments{/number}","issue_comment_url":"https://api.github.com/repos/cubesystems/releaf/issues/comments{/number}","contents_url":"https://api.github.com/repos/cubesystems/releaf/contents/{+path}","compare_url":"https://api.github.com/repos/cubesystems/releaf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cubesystems/releaf/merges","archive_url":"https://api.github.com/repos/cubesystems/releaf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cubesystems/releaf/downloads","issues_url":"https://api.github.com/repos/cubesystems/releaf/issues{/number}","pulls_url":"https://api.github.com/repos/cubesystems/releaf/pulls{/number}","milestones_url":"https://api.github.com/repos/cubesystems/releaf/milestones{/number}","notifications_url":"https://api.github.com/repos/cubesystems/releaf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cubesystems/releaf/labels{/name}","releases_url":"https://api.github.com/repos/cubesystems/releaf/releases{/id}","created_at":"2013-01-07T13:50:47Z","updated_at":"2015-06-06T16:22:43Z","pushed_at":"2015-06-08T06:29:33Z","git_url":"git://github.com/cubesystems/releaf.git","ssh_url":"git@github.com:cubesystems/releaf.git","clone_url":"https://github.com/cubesystems/releaf.git","svn_url":"https://github.com/cubesystems/releaf","homepage":"http://cubesystems.github.io/releaf/","size":10714,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":7,"default_branch":"master"}},"base":{"label":"cubesystems:master","ref":"master","sha":"50b39fb3ba8d56d07e37da6b87e8dfb8bb0f61fa","user":{"login":"cubesystems","id":686284,"avatar_url":"https://avatars.githubusercontent.com/u/686284?v=3","gravatar_id":"","url":"https://api.github.com/users/cubesystems","html_url":"https://github.com/cubesystems","followers_url":"https://api.github.com/users/cubesystems/followers","following_url":"https://api.github.com/users/cubesystems/following{/other_user}","gists_url":"https://api.github.com/users/cubesystems/gists{/gist_id}","starred_url":"https://api.github.com/users/cubesystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubesystems/subscriptions","organizations_url":"https://api.github.com/users/cubesystems/orgs","repos_url":"https://api.github.com/users/cubesystems/repos","events_url":"https://api.github.com/users/cubesystems/events{/privacy}","received_events_url":"https://api.github.com/users/cubesystems/received_events","type":"Organization","site_admin":false},"repo":{"id":7483101,"name":"releaf","full_name":"cubesystems/releaf","owner":{"login":"cubesystems","id":686284,"avatar_url":"https://avatars.githubusercontent.com/u/686284?v=3","gravatar_id":"","url":"https://api.github.com/users/cubesystems","html_url":"https://github.com/cubesystems","followers_url":"https://api.github.com/users/cubesystems/followers","following_url":"https://api.github.com/users/cubesystems/following{/other_user}","gists_url":"https://api.github.com/users/cubesystems/gists{/gist_id}","starred_url":"https://api.github.com/users/cubesystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubesystems/subscriptions","organizations_url":"https://api.github.com/users/cubesystems/orgs","repos_url":"https://api.github.com/users/cubesystems/repos","events_url":"https://api.github.com/users/cubesystems/events{/privacy}","received_events_url":"https://api.github.com/users/cubesystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cubesystems/releaf","description":"Administration interface for Ruby on Rails","fork":false,"url":"https://api.github.com/repos/cubesystems/releaf","forks_url":"https://api.github.com/repos/cubesystems/releaf/forks","keys_url":"https://api.github.com/repos/cubesystems/releaf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cubesystems/releaf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cubesystems/releaf/teams","hooks_url":"https://api.github.com/repos/cubesystems/releaf/hooks","issue_events_url":"https://api.github.com/repos/cubesystems/releaf/issues/events{/number}","events_url":"https://api.github.com/repos/cubesystems/releaf/events","assignees_url":"https://api.github.com/repos/cubesystems/releaf/assignees{/user}","branches_url":"https://api.github.com/repos/cubesystems/releaf/branches{/branch}","tags_url":"https://api.github.com/repos/cubesystems/releaf/tags","blobs_url":"https://api.github.com/repos/cubesystems/releaf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cubesystems/releaf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cubesystems/releaf/git/refs{/sha}","trees_url":"https://api.github.com/repos/cubesystems/releaf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cubesystems/releaf/statuses/{sha}","languages_url":"https://api.github.com/repos/cubesystems/releaf/languages","stargazers_url":"https://api.github.com/repos/cubesystems/releaf/stargazers","contributors_url":"https://api.github.com/repos/cubesystems/releaf/contributors","subscribers_url":"https://api.github.com/repos/cubesystems/releaf/subscribers","subscription_url":"https://api.github.com/repos/cubesystems/releaf/subscription","commits_url":"https://api.github.com/repos/cubesystems/releaf/commits{/sha}","git_commits_url":"https://api.github.com/repos/cubesystems/releaf/git/commits{/sha}","comments_url":"https://api.github.com/repos/cubesystems/releaf/comments{/number}","issue_comment_url":"https://api.github.com/repos/cubesystems/releaf/issues/comments{/number}","contents_url":"https://api.github.com/repos/cubesystems/releaf/contents/{+path}","compare_url":"https://api.github.com/repos/cubesystems/releaf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cubesystems/releaf/merges","archive_url":"https://api.github.com/repos/cubesystems/releaf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cubesystems/releaf/downloads","issues_url":"https://api.github.com/repos/cubesystems/releaf/issues{/number}","pulls_url":"https://api.github.com/repos/cubesystems/releaf/pulls{/number}","milestones_url":"https://api.github.com/repos/cubesystems/releaf/milestones{/number}","notifications_url":"https://api.github.com/repos/cubesystems/releaf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cubesystems/releaf/labels{/name}","releases_url":"https://api.github.com/repos/cubesystems/releaf/releases{/id}","created_at":"2013-01-07T13:50:47Z","updated_at":"2015-06-06T16:22:43Z","pushed_at":"2015-06-08T06:29:33Z","git_url":"git://github.com/cubesystems/releaf.git","ssh_url":"git@github.com:cubesystems/releaf.git","clone_url":"https://github.com/cubesystems/releaf.git","svn_url":"https://github.com/cubesystems/releaf","homepage":"http://cubesystems.github.io/releaf/","size":10714,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cubesystems/releaf/pulls/213"},"html":{"href":"https://github.com/cubesystems/releaf/pull/213"},"issue":{"href":"https://api.github.com/repos/cubesystems/releaf/issues/213"},"comments":{"href":"https://api.github.com/repos/cubesystems/releaf/issues/213/comments"},"review_comments":{"href":"https://api.github.com/repos/cubesystems/releaf/pulls/213/comments"},"review_comment":{"href":"https://api.github.com/repos/cubesystems/releaf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cubesystems/releaf/pulls/213/commits"},"statuses":{"href":"https://api.github.com/repos/cubesystems/releaf/statuses/a01cc7825cbaa6e617c5dd9a0413937d043add6b"}}}}