Skip to content

Instantly share code, notes, and snippets.

@rietta
Last active January 23, 2017 17:02
Show Gist options
  • Save rietta/6eff397d1e1090638ec59632c05ef60b to your computer and use it in GitHub Desktop.
Save rietta/6eff397d1e1090638ec59632c05ef60b to your computer and use it in GitHub Desktop.
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