Created
April 16, 2021 02:55
-
-
Save juliocabrera820/105c6ad1f98a180d0bb17acdccdddea6 to your computer and use it in GitHub Desktop.
example testing an active record exception
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
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