Answer the question
In order to leave comments, you need to log in
How to test migration with Rspec?
I am new to Rails and Rspec.
I am faced with such a task, there is a certain migration that adds values \u200b\u200bto the database. How can I test it using Rspec. It is necessary to test that all values are added.
Interested in an implementation example, namely how to run the migration in the test itself, that is, how to call the migration inside the test. Perhaps somewhere there are similar examples of such tests, thank you in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question