{"comment":{"url":"https://api.github.com/repos/openstax/tutor-server/comments/10487764","html_url":"https://github.com/openstax/tutor-server/commit/b2dfb58d1b46611f7b23ce4533c549d38b9f0e20#commitcomment-10487764","id":10487764,"user":{"login":"karenc","id":153353,"avatar_url":"https://avatars.githubusercontent.com/u/153353?v=3","gravatar_id":"","url":"https://api.github.com/users/karenc","html_url":"https://github.com/karenc","followers_url":"https://api.github.com/users/karenc/followers","following_url":"https://api.github.com/users/karenc/following{/other_user}","gists_url":"https://api.github.com/users/karenc/gists{/gist_id}","starred_url":"https://api.github.com/users/karenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karenc/subscriptions","organizations_url":"https://api.github.com/users/karenc/orgs","repos_url":"https://api.github.com/users/karenc/repos","events_url":"https://api.github.com/users/karenc/events{/privacy}","received_events_url":"https://api.github.com/users/karenc/received_events","type":"User","site_admin":false},"position":9,"line":9,"path":"spec/features/admin/sign_in_as_spec.rb","commit_id":"b2dfb58d1b46611f7b23ce4533c549d38b9f0e20","created_at":"2015-03-31T10:06:43Z","updated_at":"2015-03-31T10:06:43Z","body":"I was using the `stub_current_user` method in my test, but when I signed in as another user I could still access the admin page, it's because the code is trying to change the current_user which is getting stubbed.  So I decided to not use `stub_current_user`."}}