What is the model unit test code testing? ・ Where is the validation to prevent character restrictions such as passwords and blanks written?
Organize where to write validation and what you are testing. ・ Devise is connected to the model of rails app. ・ Devise validation is described in config / initialize / devise.rb -Validation of the model that does not go through the gem is described in the model. -Unit tests of the model confirm that validation works.
Recommended Posts