Sometimes we need certain instance of model class to perform certain test. In this example we are going to test for showing instance of user via RSpec. This test obviously will require the use of an instance of the User model. I do this test using a technique called factories.
Continue reading
Using Factories to Do Ruby on Rails Rspec Test
Leave a reply