{"action":"created","comment":{"url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/pulls/comments/34711455","id":34711455,"diff_hunk":"@@ -248,6 +262,33 @@ To use no fallback when token authentication fails, set `fallback: :none`.\n \n   [csrf]: https://github.com/gonzalo-bulnes/simple_token_authentication/issues/49\n \n+### Testing with Rspec/Minitest","path":"README.md","position":25,"original_position":25,"commit_id":"449f48278f70e07ec1ec672bfc44d6b1fa96b820","original_commit_id":"449f48278f70e07ec1ec672bfc44d6b1fa96b820","user":{"login":"johnmosesman","id":3760568,"avatar_url":"https://avatars.githubusercontent.com/u/3760568?v=3","gravatar_id":"","url":"https://api.github.com/users/johnmosesman","html_url":"https://github.com/johnmosesman","followers_url":"https://api.github.com/users/johnmosesman/followers","following_url":"https://api.github.com/users/johnmosesman/following{/other_user}","gists_url":"https://api.github.com/users/johnmosesman/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmosesman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmosesman/subscriptions","organizations_url":"https://api.github.com/users/johnmosesman/orgs","repos_url":"https://api.github.com/users/johnmosesman/repos","events_url":"https://api.github.com/users/johnmosesman/events{/privacy}","received_events_url":"https://api.github.com/users/johnmosesman/received_events","type":"User","site_admin":false},"body":"Sounds good!","created_at":"2015-07-15T18:23:17Z","updated_at":"2015-07-15T18:23:17Z","html_url":"https://github.com/gonzalo-bulnes/simple_token_authentication/pull/180#discussion_r34711455","pull_request_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/pulls/180","_links":{"self":{"href":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/pulls/comments/34711455"},"html":{"href":"https://github.com/gonzalo-bulnes/simple_token_authentication/pull/180#discussion_r34711455"},"pull_request":{"href":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/pulls/180"}}},"pull_request":{"url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/pulls/180","id":39970174,"html_url":"https://github.com/gonzalo-bulnes/simple_token_authentication/pull/180","diff_url":"https://github.com/gonzalo-bulnes/simple_token_authentication/pull/180.diff","patch_url":"https://github.com/gonzalo-bulnes/simple_token_authentication/pull/180.patch","issue_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/issues/180","number":180,"state":"open","locked":false,"title":"Add examples for passing identifiers in tests","user":{"login":"johnmosesman","id":3760568,"avatar_url":"https://avatars.githubusercontent.com/u/3760568?v=3","gravatar_id":"","url":"https://api.github.com/users/johnmosesman","html_url":"https://github.com/johnmosesman","followers_url":"https://api.github.com/users/johnmosesman/followers","following_url":"https://api.github.com/users/johnmosesman/following{/other_user}","gists_url":"https://api.github.com/users/johnmosesman/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmosesman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmosesman/subscriptions","organizations_url":"https://api.github.com/users/johnmosesman/orgs","repos_url":"https://api.github.com/users/johnmosesman/repos","events_url":"https://api.github.com/users/johnmosesman/events{/privacy}","received_events_url":"https://api.github.com/users/johnmosesman/received_events","type":"User","site_admin":false},"body":"Added examples for how to pass the identifiers in controller tests.\r\n\r\nAlso added some more info regarding how the identifier naming scheme works since that bit me for a while (open to suggestions of course).\r\n\r\nSee #179","created_at":"2015-07-14T22:27:25Z","updated_at":"2015-07-15T18:23:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"14ec353d95914510a06d2c447a97d635178a1098","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/pulls/180/commits","review_comments_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/pulls/180/comments","review_comment_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/issues/180/comments","statuses_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/statuses/449f48278f70e07ec1ec672bfc44d6b1fa96b820","head":{"label":"johnmosesman:master","ref":"master","sha":"449f48278f70e07ec1ec672bfc44d6b1fa96b820","user":{"login":"johnmosesman","id":3760568,"avatar_url":"https://avatars.githubusercontent.com/u/3760568?v=3","gravatar_id":"","url":"https://api.github.com/users/johnmosesman","html_url":"https://github.com/johnmosesman","followers_url":"https://api.github.com/users/johnmosesman/followers","following_url":"https://api.github.com/users/johnmosesman/following{/other_user}","gists_url":"https://api.github.com/users/johnmosesman/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmosesman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmosesman/subscriptions","organizations_url":"https://api.github.com/users/johnmosesman/orgs","repos_url":"https://api.github.com/users/johnmosesman/repos","events_url":"https://api.github.com/users/johnmosesman/events{/privacy}","received_events_url":"https://api.github.com/users/johnmosesman/received_events","type":"User","site_admin":false},"repo":{"id":39103326,"name":"simple_token_authentication","full_name":"johnmosesman/simple_token_authentication","owner":{"login":"johnmosesman","id":3760568,"avatar_url":"https://avatars.githubusercontent.com/u/3760568?v=3","gravatar_id":"","url":"https://api.github.com/users/johnmosesman","html_url":"https://github.com/johnmosesman","followers_url":"https://api.github.com/users/johnmosesman/followers","following_url":"https://api.github.com/users/johnmosesman/following{/other_user}","gists_url":"https://api.github.com/users/johnmosesman/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmosesman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmosesman/subscriptions","organizations_url":"https://api.github.com/users/johnmosesman/orgs","repos_url":"https://api.github.com/users/johnmosesman/repos","events_url":"https://api.github.com/users/johnmosesman/events{/privacy}","received_events_url":"https://api.github.com/users/johnmosesman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johnmosesman/simple_token_authentication","description":"Simple (but safe) token authentication for Rails apps or API with Devise.","fork":true,"url":"https://api.github.com/repos/johnmosesman/simple_token_authentication","forks_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/forks","keys_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/teams","hooks_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/hooks","issue_events_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/issues/events{/number}","events_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/events","assignees_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/assignees{/user}","branches_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/branches{/branch}","tags_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/tags","blobs_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/statuses/{sha}","languages_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/languages","stargazers_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/stargazers","contributors_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/contributors","subscribers_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/subscribers","subscription_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/subscription","commits_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/contents/{+path}","compare_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/merges","archive_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/downloads","issues_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/issues{/number}","pulls_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/pulls{/number}","milestones_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/milestones{/number}","notifications_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/labels{/name}","releases_url":"https://api.github.com/repos/johnmosesman/simple_token_authentication/releases{/id}","created_at":"2015-07-14T22:19:11Z","updated_at":"2015-07-14T22:19:11Z","pushed_at":"2015-07-14T22:30:50Z","git_url":"git://github.com/johnmosesman/simple_token_authentication.git","ssh_url":"git@github.com:johnmosesman/simple_token_authentication.git","clone_url":"https://github.com/johnmosesman/simple_token_authentication.git","svn_url":"https://github.com/johnmosesman/simple_token_authentication","homepage":"","size":593,"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":"gonzalo-bulnes:master","ref":"master","sha":"70e13cd3e2d2a11da42ae8caa66945fcf8d61e94","user":{"login":"gonzalo-bulnes","id":1619067,"avatar_url":"https://avatars.githubusercontent.com/u/1619067?v=3","gravatar_id":"","url":"https://api.github.com/users/gonzalo-bulnes","html_url":"https://github.com/gonzalo-bulnes","followers_url":"https://api.github.com/users/gonzalo-bulnes/followers","following_url":"https://api.github.com/users/gonzalo-bulnes/following{/other_user}","gists_url":"https://api.github.com/users/gonzalo-bulnes/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzalo-bulnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzalo-bulnes/subscriptions","organizations_url":"https://api.github.com/users/gonzalo-bulnes/orgs","repos_url":"https://api.github.com/users/gonzalo-bulnes/repos","events_url":"https://api.github.com/users/gonzalo-bulnes/events{/privacy}","received_events_url":"https://api.github.com/users/gonzalo-bulnes/received_events","type":"User","site_admin":false},"repo":{"id":15211432,"name":"simple_token_authentication","full_name":"gonzalo-bulnes/simple_token_authentication","owner":{"login":"gonzalo-bulnes","id":1619067,"avatar_url":"https://avatars.githubusercontent.com/u/1619067?v=3","gravatar_id":"","url":"https://api.github.com/users/gonzalo-bulnes","html_url":"https://github.com/gonzalo-bulnes","followers_url":"https://api.github.com/users/gonzalo-bulnes/followers","following_url":"https://api.github.com/users/gonzalo-bulnes/following{/other_user}","gists_url":"https://api.github.com/users/gonzalo-bulnes/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzalo-bulnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzalo-bulnes/subscriptions","organizations_url":"https://api.github.com/users/gonzalo-bulnes/orgs","repos_url":"https://api.github.com/users/gonzalo-bulnes/repos","events_url":"https://api.github.com/users/gonzalo-bulnes/events{/privacy}","received_events_url":"https://api.github.com/users/gonzalo-bulnes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gonzalo-bulnes/simple_token_authentication","description":"Simple (but safe) token authentication for Rails apps or API with Devise.","fork":false,"url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication","forks_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/forks","keys_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/teams","hooks_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/hooks","issue_events_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/issues/events{/number}","events_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/events","assignees_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/assignees{/user}","branches_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/branches{/branch}","tags_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/tags","blobs_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/git/refs{/sha}","trees_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/statuses/{sha}","languages_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/languages","stargazers_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/stargazers","contributors_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/contributors","subscribers_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/subscribers","subscription_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/subscription","commits_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/commits{/sha}","git_commits_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/git/commits{/sha}","comments_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/comments{/number}","issue_comment_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/issues/comments{/number}","contents_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/contents/{+path}","compare_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/merges","archive_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/downloads","issues_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/issues{/number}","pulls_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/pulls{/number}","milestones_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/milestones{/number}","notifications_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/labels{/name}","releases_url":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/releases{/id}","created_at":"2013-12-15T21:49:02Z","updated_at":"2015-07-15T16:39:28Z","pushed_at":"2015-07-15T16:48:16Z","git_url":"git://github.com/gonzalo-bulnes/simple_token_authentication.git","ssh_url":"git@github.com:gonzalo-bulnes/simple_token_authentication.git","clone_url":"https://github.com/gonzalo-bulnes/simple_token_authentication.git","svn_url":"https://github.com/gonzalo-bulnes/simple_token_authentication","homepage":"","size":2276,"stargazers_count":616,"watchers_count":616,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":121,"mirror_url":null,"open_issues_count":37,"forks":121,"open_issues":37,"watchers":616,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/pulls/180"},"html":{"href":"https://github.com/gonzalo-bulnes/simple_token_authentication/pull/180"},"issue":{"href":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/issues/180"},"comments":{"href":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/issues/180/comments"},"review_comments":{"href":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/pulls/180/comments"},"review_comment":{"href":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/pulls/180/commits"},"statuses":{"href":"https://api.github.com/repos/gonzalo-bulnes/simple_token_authentication/statuses/449f48278f70e07ec1ec672bfc44d6b1fa96b820"}}}}