Monthly Archives: November 2010

Using Factories to Do Ruby on Rails Rspec Test

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