What is the model test code testing

What i don't understand

What is the model unit test code testing? ・ Where is the validation to prevent character restrictions such as passwords and blanks written?

Rails app, gem (devise) and DB diagram

Organize where to write validation and what you are testing. IMG_1915.jpg ・ 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

What is the model test code testing
What is testing? ・ About the importance of testing
What is MVC model?
What is the Java Servlet / JSP MVC model?
What is the pluck method?
What is the BufferedReader class?
Memorandum (task: model test code)
What is the constructor for?
Until the code is executed
What is the initialize method?
What is the representation of domain knowledge in the [DDD] model?
'% 02d' What is the percentage of% 2?
[Rails] Unit test code for User model
What is the best file reading (Java)
What is the main method in Java?
What is the data structure of ActionText?
What is the Facade pattern useful for?
Write code that is difficult to test
Think of test code that is easy to understand through Comparator testing
What is Pullback doing in The Composable Architecture
What is Cubby
What is Docker?
What is null? ]
What is java
What is Keycloak
What is maven?
What is Jackson?
What is different from the PHP language. [Note]
Image column test code when ActiveStorage is introduced
What is Docker
What is self
What is ArgumentMatcher?
What is IM-Juggling?
The MVC model at my workplace is terrible
RSpec-Results of reviewing the test code for'users validation'
What is params
What is SLF4J?
What is Facade? ??
What is Java <>?
What is the volatile modifier for Java variables?
What is Gradle?
What is POJO
What is the difference between SimpleDateFormat and DateTimeFormatter? ??
Model unit test code to check uniqueness constraints
What is Java
What is centOS
Efficient test code
What is RubyGem?
What is programming?
What is before_action?
What is Docker
What is Byte?
What is Tomcat
Ebean.update () is not executed in the inherited model.
[Rails] From test preparation to model unit testing [RSpec]
What is the difference between a class and a struct? ?? ??
What is the difference between System Spec and Feature Spec?
To implement, write the test and then code the process
What should I use for the testing framework [Rails]
[JAVA] What is the difference between interface and abstract? ?? ??
PATH does not pass ... The cause is the character code