Writing Specs for ActiveRecord Exceptions

preview_player
Показать описание
#rubyonrails #rspec #rails7
Hello Friends

In this lecture we will work on writing specs for testing the ActiveRecord Exceptions in Rails. Yu might fall into the situations where you need to write spec when an ActiveRecord exception is raised. This lecture will definitely help you write such specs. Please watch the complete lecture for a better understanding.

Here I also tried to explain the difference between save and save! again and if you want to learn the difference between save and save! in detail then kindly visit this lecture:

Thanks
Рекомендации по теме