filmov
tv
Rails 7 #124 Test omniauth login with controller (integration) tests

Показать описание
Testing is a very important part of app development that I haven't covered a lot before.
Previously we've added oAuth login for Microsoft & Github. Now, let's mock omniauth authentication with both oAuth providers in our tests.
0:00 walk through initial app setup
1:30 run test suite, fix errors
3:40 test Github omniauth authentication
6:04 test Microsoft Azure omniauth authentication
9:17 final test run
Previously we've added oAuth login for Microsoft & Github. Now, let's mock omniauth authentication with both oAuth providers in our tests.
0:00 walk through initial app setup
1:30 run test suite, fix errors
3:40 test Github omniauth authentication
6:04 test Microsoft Azure omniauth authentication
9:17 final test run
Комментарии