{"action":"created","comment":{"url":"https://api.github.com/repos/felipesere/faros/pulls/comments/41103391","id":41103391,"diff_hunk":"@@ -2,9 +2,11 @@ defmodule Faros.Categories.CategoryForBookTest do\n   use Faros.RepositoryCase\n   alias Faros.Categories.Category\n   alias Faros.Categories.CategoryFor\n+  alias Faros.Books.Query\n+  alias Faros.SampleData\n \n   test \"saves a relation to a book\" do\n-    book = Faros.SampleData.sample_book  |> Repo.insert!\n+    {:ok, book} = SampleData.sample_book()  |> Query.save","path":"test/categories/category_for_book_test.exs","position":9,"original_position":9,"commit_id":"20c74432d05e4e14c134a8e2fca93faa85cc343d","original_commit_id":"20c74432d05e4e14c134a8e2fca93faa85cc343d","user":{"login":"Maikon","id":1873539,"avatar_url":"https://avatars.githubusercontent.com/u/1873539?v=3","gravatar_id":"","url":"https://api.github.com/users/Maikon","html_url":"https://github.com/Maikon","followers_url":"https://api.github.com/users/Maikon/followers","following_url":"https://api.github.com/users/Maikon/following{/other_user}","gists_url":"https://api.github.com/users/Maikon/gists{/gist_id}","starred_url":"https://api.github.com/users/Maikon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maikon/subscriptions","organizations_url":"https://api.github.com/users/Maikon/orgs","repos_url":"https://api.github.com/users/Maikon/repos","events_url":"https://api.github.com/users/Maikon/events{/privacy}","received_events_url":"https://api.github.com/users/Maikon/received_events","type":"User","site_admin":false},"body":"Maybe it's best importing the `sample_book()` as we do elsewhere so we don't need to prefix with the module? More for consistency.","created_at":"2015-10-04T22:27:13Z","updated_at":"2015-10-04T22:27:13Z","html_url":"https://github.com/felipesere/faros/pull/41#discussion_r41103391","pull_request_url":"https://api.github.com/repos/felipesere/faros/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/felipesere/faros/pulls/comments/41103391"},"html":{"href":"https://github.com/felipesere/faros/pull/41#discussion_r41103391"},"pull_request":{"href":"https://api.github.com/repos/felipesere/faros/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/felipesere/faros/pulls/41","id":46443192,"html_url":"https://github.com/felipesere/faros/pull/41","diff_url":"https://github.com/felipesere/faros/pull/41.diff","patch_url":"https://github.com/felipesere/faros/pull/41.patch","issue_url":"https://api.github.com/repos/felipesere/faros/issues/41","number":41,"state":"open","locked":false,"title":"Generate slugs updated","user":{"login":"felipesere","id":1850188,"avatar_url":"https://avatars.githubusercontent.com/u/1850188?v=3","gravatar_id":"","url":"https://api.github.com/users/felipesere","html_url":"https://github.com/felipesere","followers_url":"https://api.github.com/users/felipesere/followers","following_url":"https://api.github.com/users/felipesere/following{/other_user}","gists_url":"https://api.github.com/users/felipesere/gists{/gist_id}","starred_url":"https://api.github.com/users/felipesere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipesere/subscriptions","organizations_url":"https://api.github.com/users/felipesere/orgs","repos_url":"https://api.github.com/users/felipesere/repos","events_url":"https://api.github.com/users/felipesere/events{/privacy}","received_events_url":"https://api.github.com/users/felipesere/received_events","type":"User","site_admin":false},"body":"Initial PR to begin talking about this\r\n\r\nTodos:\r\n* [x] Show an error in the form when the slug is already taken","created_at":"2015-09-30T19:09:52Z","updated_at":"2015-10-04T22:27:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b36dc215a71c8c3ae946fee80303ef1f4710e8f9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/felipesere/faros/pulls/41/commits","review_comments_url":"https://api.github.com/repos/felipesere/faros/pulls/41/comments","review_comment_url":"https://api.github.com/repos/felipesere/faros/pulls/comments{/number}","comments_url":"https://api.github.com/repos/felipesere/faros/issues/41/comments","statuses_url":"https://api.github.com/repos/felipesere/faros/statuses/20c74432d05e4e14c134a8e2fca93faa85cc343d","head":{"label":"felipesere:generate_slugs_updated","ref":"generate_slugs_updated","sha":"20c74432d05e4e14c134a8e2fca93faa85cc343d","user":{"login":"felipesere","id":1850188,"avatar_url":"https://avatars.githubusercontent.com/u/1850188?v=3","gravatar_id":"","url":"https://api.github.com/users/felipesere","html_url":"https://github.com/felipesere","followers_url":"https://api.github.com/users/felipesere/followers","following_url":"https://api.github.com/users/felipesere/following{/other_user}","gists_url":"https://api.github.com/users/felipesere/gists{/gist_id}","starred_url":"https://api.github.com/users/felipesere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipesere/subscriptions","organizations_url":"https://api.github.com/users/felipesere/orgs","repos_url":"https://api.github.com/users/felipesere/repos","events_url":"https://api.github.com/users/felipesere/events{/privacy}","received_events_url":"https://api.github.com/users/felipesere/received_events","type":"User","site_admin":false},"repo":{"id":36696302,"name":"faros","full_name":"felipesere/faros","owner":{"login":"felipesere","id":1850188,"avatar_url":"https://avatars.githubusercontent.com/u/1850188?v=3","gravatar_id":"","url":"https://api.github.com/users/felipesere","html_url":"https://github.com/felipesere","followers_url":"https://api.github.com/users/felipesere/followers","following_url":"https://api.github.com/users/felipesere/following{/other_user}","gists_url":"https://api.github.com/users/felipesere/gists{/gist_id}","starred_url":"https://api.github.com/users/felipesere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipesere/subscriptions","organizations_url":"https://api.github.com/users/felipesere/orgs","repos_url":"https://api.github.com/users/felipesere/repos","events_url":"https://api.github.com/users/felipesere/events{/privacy}","received_events_url":"https://api.github.com/users/felipesere/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/felipesere/faros","description":"Beacon of knowledge","fork":false,"url":"https://api.github.com/repos/felipesere/faros","forks_url":"https://api.github.com/repos/felipesere/faros/forks","keys_url":"https://api.github.com/repos/felipesere/faros/keys{/key_id}","collaborators_url":"https://api.github.com/repos/felipesere/faros/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/felipesere/faros/teams","hooks_url":"https://api.github.com/repos/felipesere/faros/hooks","issue_events_url":"https://api.github.com/repos/felipesere/faros/issues/events{/number}","events_url":"https://api.github.com/repos/felipesere/faros/events","assignees_url":"https://api.github.com/repos/felipesere/faros/assignees{/user}","branches_url":"https://api.github.com/repos/felipesere/faros/branches{/branch}","tags_url":"https://api.github.com/repos/felipesere/faros/tags","blobs_url":"https://api.github.com/repos/felipesere/faros/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/felipesere/faros/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/felipesere/faros/git/refs{/sha}","trees_url":"https://api.github.com/repos/felipesere/faros/git/trees{/sha}","statuses_url":"https://api.github.com/repos/felipesere/faros/statuses/{sha}","languages_url":"https://api.github.com/repos/felipesere/faros/languages","stargazers_url":"https://api.github.com/repos/felipesere/faros/stargazers","contributors_url":"https://api.github.com/repos/felipesere/faros/contributors","subscribers_url":"https://api.github.com/repos/felipesere/faros/subscribers","subscription_url":"https://api.github.com/repos/felipesere/faros/subscription","commits_url":"https://api.github.com/repos/felipesere/faros/commits{/sha}","git_commits_url":"https://api.github.com/repos/felipesere/faros/git/commits{/sha}","comments_url":"https://api.github.com/repos/felipesere/faros/comments{/number}","issue_comment_url":"https://api.github.com/repos/felipesere/faros/issues/comments{/number}","contents_url":"https://api.github.com/repos/felipesere/faros/contents/{+path}","compare_url":"https://api.github.com/repos/felipesere/faros/compare/{base}...{head}","merges_url":"https://api.github.com/repos/felipesere/faros/merges","archive_url":"https://api.github.com/repos/felipesere/faros/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/felipesere/faros/downloads","issues_url":"https://api.github.com/repos/felipesere/faros/issues{/number}","pulls_url":"https://api.github.com/repos/felipesere/faros/pulls{/number}","milestones_url":"https://api.github.com/repos/felipesere/faros/milestones{/number}","notifications_url":"https://api.github.com/repos/felipesere/faros/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/felipesere/faros/labels{/name}","releases_url":"https://api.github.com/repos/felipesere/faros/releases{/id}","created_at":"2015-06-02T00:00:02Z","updated_at":"2015-10-04T15:58:52Z","pushed_at":"2015-10-04T22:17:00Z","git_url":"git://github.com/felipesere/faros.git","ssh_url":"git@github.com:felipesere/faros.git","clone_url":"https://github.com/felipesere/faros.git","svn_url":"https://github.com/felipesere/faros","homepage":"http://www.faros.io","size":4304,"stargazers_count":2,"watchers_count":2,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":22,"forks":1,"open_issues":22,"watchers":2,"default_branch":"master"}},"base":{"label":"felipesere:master","ref":"master","sha":"db41529eb0ae154154fc4ca27c05fa9794a87160","user":{"login":"felipesere","id":1850188,"avatar_url":"https://avatars.githubusercontent.com/u/1850188?v=3","gravatar_id":"","url":"https://api.github.com/users/felipesere","html_url":"https://github.com/felipesere","followers_url":"https://api.github.com/users/felipesere/followers","following_url":"https://api.github.com/users/felipesere/following{/other_user}","gists_url":"https://api.github.com/users/felipesere/gists{/gist_id}","starred_url":"https://api.github.com/users/felipesere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipesere/subscriptions","organizations_url":"https://api.github.com/users/felipesere/orgs","repos_url":"https://api.github.com/users/felipesere/repos","events_url":"https://api.github.com/users/felipesere/events{/privacy}","received_events_url":"https://api.github.com/users/felipesere/received_events","type":"User","site_admin":false},"repo":{"id":36696302,"name":"faros","full_name":"felipesere/faros","owner":{"login":"felipesere","id":1850188,"avatar_url":"https://avatars.githubusercontent.com/u/1850188?v=3","gravatar_id":"","url":"https://api.github.com/users/felipesere","html_url":"https://github.com/felipesere","followers_url":"https://api.github.com/users/felipesere/followers","following_url":"https://api.github.com/users/felipesere/following{/other_user}","gists_url":"https://api.github.com/users/felipesere/gists{/gist_id}","starred_url":"https://api.github.com/users/felipesere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipesere/subscriptions","organizations_url":"https://api.github.com/users/felipesere/orgs","repos_url":"https://api.github.com/users/felipesere/repos","events_url":"https://api.github.com/users/felipesere/events{/privacy}","received_events_url":"https://api.github.com/users/felipesere/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/felipesere/faros","description":"Beacon of knowledge","fork":false,"url":"https://api.github.com/repos/felipesere/faros","forks_url":"https://api.github.com/repos/felipesere/faros/forks","keys_url":"https://api.github.com/repos/felipesere/faros/keys{/key_id}","collaborators_url":"https://api.github.com/repos/felipesere/faros/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/felipesere/faros/teams","hooks_url":"https://api.github.com/repos/felipesere/faros/hooks","issue_events_url":"https://api.github.com/repos/felipesere/faros/issues/events{/number}","events_url":"https://api.github.com/repos/felipesere/faros/events","assignees_url":"https://api.github.com/repos/felipesere/faros/assignees{/user}","branches_url":"https://api.github.com/repos/felipesere/faros/branches{/branch}","tags_url":"https://api.github.com/repos/felipesere/faros/tags","blobs_url":"https://api.github.com/repos/felipesere/faros/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/felipesere/faros/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/felipesere/faros/git/refs{/sha}","trees_url":"https://api.github.com/repos/felipesere/faros/git/trees{/sha}","statuses_url":"https://api.github.com/repos/felipesere/faros/statuses/{sha}","languages_url":"https://api.github.com/repos/felipesere/faros/languages","stargazers_url":"https://api.github.com/repos/felipesere/faros/stargazers","contributors_url":"https://api.github.com/repos/felipesere/faros/contributors","subscribers_url":"https://api.github.com/repos/felipesere/faros/subscribers","subscription_url":"https://api.github.com/repos/felipesere/faros/subscription","commits_url":"https://api.github.com/repos/felipesere/faros/commits{/sha}","git_commits_url":"https://api.github.com/repos/felipesere/faros/git/commits{/sha}","comments_url":"https://api.github.com/repos/felipesere/faros/comments{/number}","issue_comment_url":"https://api.github.com/repos/felipesere/faros/issues/comments{/number}","contents_url":"https://api.github.com/repos/felipesere/faros/contents/{+path}","compare_url":"https://api.github.com/repos/felipesere/faros/compare/{base}...{head}","merges_url":"https://api.github.com/repos/felipesere/faros/merges","archive_url":"https://api.github.com/repos/felipesere/faros/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/felipesere/faros/downloads","issues_url":"https://api.github.com/repos/felipesere/faros/issues{/number}","pulls_url":"https://api.github.com/repos/felipesere/faros/pulls{/number}","milestones_url":"https://api.github.com/repos/felipesere/faros/milestones{/number}","notifications_url":"https://api.github.com/repos/felipesere/faros/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/felipesere/faros/labels{/name}","releases_url":"https://api.github.com/repos/felipesere/faros/releases{/id}","created_at":"2015-06-02T00:00:02Z","updated_at":"2015-10-04T15:58:52Z","pushed_at":"2015-10-04T22:17:00Z","git_url":"git://github.com/felipesere/faros.git","ssh_url":"git@github.com:felipesere/faros.git","clone_url":"https://github.com/felipesere/faros.git","svn_url":"https://github.com/felipesere/faros","homepage":"http://www.faros.io","size":4304,"stargazers_count":2,"watchers_count":2,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":22,"forks":1,"open_issues":22,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/felipesere/faros/pulls/41"},"html":{"href":"https://github.com/felipesere/faros/pull/41"},"issue":{"href":"https://api.github.com/repos/felipesere/faros/issues/41"},"comments":{"href":"https://api.github.com/repos/felipesere/faros/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/felipesere/faros/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/felipesere/faros/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/felipesere/faros/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/felipesere/faros/statuses/20c74432d05e4e14c134a8e2fca93faa85cc343d"}}}}