{"action":"created","comment":{"url":"https://api.github.com/repos/codevise/pageflow/pulls/comments/69102088","id":69102088,"diff_hunk":"@@ -0,0 +1,16 @@\n+require 'spec_helper'\n+\n+# Generators are not automatically loaded by Rails\n+require 'generators/pageflow/cancan/cancan_generator'","path":"spec/generators/pageflow/cancan/cancan_generator_spec.rb","position":4,"original_position":4,"commit_id":"7246df0fed8989827f6f4622b130c8b3ad27b26e","original_commit_id":"7246df0fed8989827f6f4622b130c8b3ad27b26e","user":{"login":"tf","id":26554,"avatar_url":"https://avatars.githubusercontent.com/u/26554?v=3","gravatar_id":"","url":"https://api.github.com/users/tf","html_url":"https://github.com/tf","followers_url":"https://api.github.com/users/tf/followers","following_url":"https://api.github.com/users/tf/following{/other_user}","gists_url":"https://api.github.com/users/tf/gists{/gist_id}","starred_url":"https://api.github.com/users/tf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tf/subscriptions","organizations_url":"https://api.github.com/users/tf/orgs","repos_url":"https://api.github.com/users/tf/repos","events_url":"https://api.github.com/users/tf/events{/privacy}","received_events_url":"https://api.github.com/users/tf/received_events","type":"User","site_admin":false},"body":"Let's remove the repeated comment. The require pretty much speaks for itself.","created_at":"2016-06-30T09:35:24Z","updated_at":"2016-06-30T09:35:24Z","html_url":"https://github.com/codevise/pageflow/pull/574#discussion_r69102088","pull_request_url":"https://api.github.com/repos/codevise/pageflow/pulls/574","_links":{"self":{"href":"https://api.github.com/repos/codevise/pageflow/pulls/comments/69102088"},"html":{"href":"https://github.com/codevise/pageflow/pull/574#discussion_r69102088"},"pull_request":{"href":"https://api.github.com/repos/codevise/pageflow/pulls/574"}}},"pull_request":{"url":"https://api.github.com/repos/codevise/pageflow/pulls/574","id":75708449,"html_url":"https://github.com/codevise/pageflow/pull/574","diff_url":"https://github.com/codevise/pageflow/pull/574.diff","patch_url":"https://github.com/codevise/pageflow/pull/574.patch","issue_url":"https://api.github.com/repos/codevise/pageflow/issues/574","number":574,"state":"open","locked":false,"title":"Generator unit tests","user":{"login":"tilsammans","id":14680,"avatar_url":"https://avatars.githubusercontent.com/u/14680?v=3","gravatar_id":"","url":"https://api.github.com/users/tilsammans","html_url":"https://github.com/tilsammans","followers_url":"https://api.github.com/users/tilsammans/followers","following_url":"https://api.github.com/users/tilsammans/following{/other_user}","gists_url":"https://api.github.com/users/tilsammans/gists{/gist_id}","starred_url":"https://api.github.com/users/tilsammans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilsammans/subscriptions","organizations_url":"https://api.github.com/users/tilsammans/orgs","repos_url":"https://api.github.com/users/tilsammans/repos","events_url":"https://api.github.com/users/tilsammans/events{/privacy}","received_events_url":"https://api.github.com/users/tilsammans/received_events","type":"User","site_admin":false},"body":"In order to implement #539 I wanted to add unit tests for the generator. Even though the `bin/rspec` helper generates a dummy app and initializes Pageflow for it, I think testing the generators directly is valuable too.\r\n\r\nDo you agree @tf? If so I will create more unit tests for the remaining generators first.","created_at":"2016-06-29T19:39:07Z","updated_at":"2016-06-30T09:35:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40ce8d1987f38ed7dc3f7e013a9f48373a78729a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codevise/pageflow/pulls/574/commits","review_comments_url":"https://api.github.com/repos/codevise/pageflow/pulls/574/comments","review_comment_url":"https://api.github.com/repos/codevise/pageflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codevise/pageflow/issues/574/comments","statuses_url":"https://api.github.com/repos/codevise/pageflow/statuses/7246df0fed8989827f6f4622b130c8b3ad27b26e","head":{"label":"scrollytelling:generator-unit-tests","ref":"generator-unit-tests","sha":"7246df0fed8989827f6f4622b130c8b3ad27b26e","user":{"login":"scrollytelling","id":12477817,"avatar_url":"https://avatars.githubusercontent.com/u/12477817?v=3","gravatar_id":"","url":"https://api.github.com/users/scrollytelling","html_url":"https://github.com/scrollytelling","followers_url":"https://api.github.com/users/scrollytelling/followers","following_url":"https://api.github.com/users/scrollytelling/following{/other_user}","gists_url":"https://api.github.com/users/scrollytelling/gists{/gist_id}","starred_url":"https://api.github.com/users/scrollytelling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrollytelling/subscriptions","organizations_url":"https://api.github.com/users/scrollytelling/orgs","repos_url":"https://api.github.com/users/scrollytelling/repos","events_url":"https://api.github.com/users/scrollytelling/events{/privacy}","received_events_url":"https://api.github.com/users/scrollytelling/received_events","type":"Organization","site_admin":false},"repo":{"id":61371819,"name":"pageflow","full_name":"scrollytelling/pageflow","owner":{"login":"scrollytelling","id":12477817,"avatar_url":"https://avatars.githubusercontent.com/u/12477817?v=3","gravatar_id":"","url":"https://api.github.com/users/scrollytelling","html_url":"https://github.com/scrollytelling","followers_url":"https://api.github.com/users/scrollytelling/followers","following_url":"https://api.github.com/users/scrollytelling/following{/other_user}","gists_url":"https://api.github.com/users/scrollytelling/gists{/gist_id}","starred_url":"https://api.github.com/users/scrollytelling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrollytelling/subscriptions","organizations_url":"https://api.github.com/users/scrollytelling/orgs","repos_url":"https://api.github.com/users/scrollytelling/repos","events_url":"https://api.github.com/users/scrollytelling/events{/privacy}","received_events_url":"https://api.github.com/users/scrollytelling/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scrollytelling/pageflow","description":"Multimedia story telling for the web.","fork":true,"url":"https://api.github.com/repos/scrollytelling/pageflow","forks_url":"https://api.github.com/repos/scrollytelling/pageflow/forks","keys_url":"https://api.github.com/repos/scrollytelling/pageflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scrollytelling/pageflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scrollytelling/pageflow/teams","hooks_url":"https://api.github.com/repos/scrollytelling/pageflow/hooks","issue_events_url":"https://api.github.com/repos/scrollytelling/pageflow/issues/events{/number}","events_url":"https://api.github.com/repos/scrollytelling/pageflow/events","assignees_url":"https://api.github.com/repos/scrollytelling/pageflow/assignees{/user}","branches_url":"https://api.github.com/repos/scrollytelling/pageflow/branches{/branch}","tags_url":"https://api.github.com/repos/scrollytelling/pageflow/tags","blobs_url":"https://api.github.com/repos/scrollytelling/pageflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scrollytelling/pageflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scrollytelling/pageflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/scrollytelling/pageflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scrollytelling/pageflow/statuses/{sha}","languages_url":"https://api.github.com/repos/scrollytelling/pageflow/languages","stargazers_url":"https://api.github.com/repos/scrollytelling/pageflow/stargazers","contributors_url":"https://api.github.com/repos/scrollytelling/pageflow/contributors","subscribers_url":"https://api.github.com/repos/scrollytelling/pageflow/subscribers","subscription_url":"https://api.github.com/repos/scrollytelling/pageflow/subscription","commits_url":"https://api.github.com/repos/scrollytelling/pageflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/scrollytelling/pageflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/scrollytelling/pageflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/scrollytelling/pageflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/scrollytelling/pageflow/contents/{+path}","compare_url":"https://api.github.com/repos/scrollytelling/pageflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scrollytelling/pageflow/merges","archive_url":"https://api.github.com/repos/scrollytelling/pageflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scrollytelling/pageflow/downloads","issues_url":"https://api.github.com/repos/scrollytelling/pageflow/issues{/number}","pulls_url":"https://api.github.com/repos/scrollytelling/pageflow/pulls{/number}","milestones_url":"https://api.github.com/repos/scrollytelling/pageflow/milestones{/number}","notifications_url":"https://api.github.com/repos/scrollytelling/pageflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scrollytelling/pageflow/labels{/name}","releases_url":"https://api.github.com/repos/scrollytelling/pageflow/releases{/id}","deployments_url":"https://api.github.com/repos/scrollytelling/pageflow/deployments","created_at":"2016-06-17T12:24:07Z","updated_at":"2016-06-17T12:24:10Z","pushed_at":"2016-06-29T19:59:37Z","git_url":"git://github.com/scrollytelling/pageflow.git","ssh_url":"git@github.com:scrollytelling/pageflow.git","clone_url":"https://github.com/scrollytelling/pageflow.git","svn_url":"https://github.com/scrollytelling/pageflow","homepage":"http://pageflow.io","size":10258,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codevise:master","ref":"master","sha":"065ee7a7b1bbeb96d2d901a4b2eddcc90f4c4a50","user":{"login":"codevise","id":537804,"avatar_url":"https://avatars.githubusercontent.com/u/537804?v=3","gravatar_id":"","url":"https://api.github.com/users/codevise","html_url":"https://github.com/codevise","followers_url":"https://api.github.com/users/codevise/followers","following_url":"https://api.github.com/users/codevise/following{/other_user}","gists_url":"https://api.github.com/users/codevise/gists{/gist_id}","starred_url":"https://api.github.com/users/codevise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codevise/subscriptions","organizations_url":"https://api.github.com/users/codevise/orgs","repos_url":"https://api.github.com/users/codevise/repos","events_url":"https://api.github.com/users/codevise/events{/privacy}","received_events_url":"https://api.github.com/users/codevise/received_events","type":"Organization","site_admin":false},"repo":{"id":19446839,"name":"pageflow","full_name":"codevise/pageflow","owner":{"login":"codevise","id":537804,"avatar_url":"https://avatars.githubusercontent.com/u/537804?v=3","gravatar_id":"","url":"https://api.github.com/users/codevise","html_url":"https://github.com/codevise","followers_url":"https://api.github.com/users/codevise/followers","following_url":"https://api.github.com/users/codevise/following{/other_user}","gists_url":"https://api.github.com/users/codevise/gists{/gist_id}","starred_url":"https://api.github.com/users/codevise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codevise/subscriptions","organizations_url":"https://api.github.com/users/codevise/orgs","repos_url":"https://api.github.com/users/codevise/repos","events_url":"https://api.github.com/users/codevise/events{/privacy}","received_events_url":"https://api.github.com/users/codevise/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codevise/pageflow","description":"Multimedia story telling for the web.","fork":false,"url":"https://api.github.com/repos/codevise/pageflow","forks_url":"https://api.github.com/repos/codevise/pageflow/forks","keys_url":"https://api.github.com/repos/codevise/pageflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codevise/pageflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codevise/pageflow/teams","hooks_url":"https://api.github.com/repos/codevise/pageflow/hooks","issue_events_url":"https://api.github.com/repos/codevise/pageflow/issues/events{/number}","events_url":"https://api.github.com/repos/codevise/pageflow/events","assignees_url":"https://api.github.com/repos/codevise/pageflow/assignees{/user}","branches_url":"https://api.github.com/repos/codevise/pageflow/branches{/branch}","tags_url":"https://api.github.com/repos/codevise/pageflow/tags","blobs_url":"https://api.github.com/repos/codevise/pageflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codevise/pageflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codevise/pageflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/codevise/pageflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codevise/pageflow/statuses/{sha}","languages_url":"https://api.github.com/repos/codevise/pageflow/languages","stargazers_url":"https://api.github.com/repos/codevise/pageflow/stargazers","contributors_url":"https://api.github.com/repos/codevise/pageflow/contributors","subscribers_url":"https://api.github.com/repos/codevise/pageflow/subscribers","subscription_url":"https://api.github.com/repos/codevise/pageflow/subscription","commits_url":"https://api.github.com/repos/codevise/pageflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/codevise/pageflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/codevise/pageflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/codevise/pageflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/codevise/pageflow/contents/{+path}","compare_url":"https://api.github.com/repos/codevise/pageflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codevise/pageflow/merges","archive_url":"https://api.github.com/repos/codevise/pageflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codevise/pageflow/downloads","issues_url":"https://api.github.com/repos/codevise/pageflow/issues{/number}","pulls_url":"https://api.github.com/repos/codevise/pageflow/pulls{/number}","milestones_url":"https://api.github.com/repos/codevise/pageflow/milestones{/number}","notifications_url":"https://api.github.com/repos/codevise/pageflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codevise/pageflow/labels{/name}","releases_url":"https://api.github.com/repos/codevise/pageflow/releases{/id}","deployments_url":"https://api.github.com/repos/codevise/pageflow/deployments","created_at":"2014-05-05T06:50:13Z","updated_at":"2016-06-26T21:19:57Z","pushed_at":"2016-06-29T19:59:37Z","git_url":"git://github.com/codevise/pageflow.git","ssh_url":"git@github.com:codevise/pageflow.git","clone_url":"https://github.com/codevise/pageflow.git","svn_url":"https://github.com/codevise/pageflow","homepage":"http://pageflow.io","size":11346,"stargazers_count":298,"watchers_count":298,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":77,"mirror_url":null,"open_issues_count":14,"forks":77,"open_issues":14,"watchers":298,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codevise/pageflow/pulls/574"},"html":{"href":"https://github.com/codevise/pageflow/pull/574"},"issue":{"href":"https://api.github.com/repos/codevise/pageflow/issues/574"},"comments":{"href":"https://api.github.com/repos/codevise/pageflow/issues/574/comments"},"review_comments":{"href":"https://api.github.com/repos/codevise/pageflow/pulls/574/comments"},"review_comment":{"href":"https://api.github.com/repos/codevise/pageflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codevise/pageflow/pulls/574/commits"},"statuses":{"href":"https://api.github.com/repos/codevise/pageflow/statuses/7246df0fed8989827f6f4622b130c8b3ad27b26e"}}}}
{"actor":{"display_login":"tf"}}