Using Factories to Do Ruby on Rails Rspec Test
Posted in ruby on November 7th, 2010 by Aditya – Be the first to commentSometimes 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.
read more »