Skip to content

Instantly share code, notes, and snippets.

@juliocabrera820
Created April 16, 2021 02:55
Show Gist options
  • Save juliocabrera820/105c6ad1f98a180d0bb17acdccdddea6 to your computer and use it in GitHub Desktop.
Save juliocabrera820/105c6ad1f98a180d0bb17acdccdddea6 to your computer and use it in GitHub Desktop.
example testing an active record exception
it 'returns a 404 as http status' do
expect { get '/api/v1/teams/3' }.to raise_exception(ActiveRecord::RecordNotFound)
en
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment