Last active
January 23, 2017 17:02
-
-
Save rietta/6eff397d1e1090638ec59632c05ef60b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "User can't change the ID" do | |
login_as user | |
get :show, id: other_account.id | |
expect(response).to have_http_status :unauthorized | |
expect(response.body).to_not include other_account.id | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment