Tag Archives: factory_girl

Factory_girl with Non-ActiveRecord classes

In earlier post we have seen how to test active record associations with factory girl. Now we will learn how factory girl works with non-active record classes. When we want to test external API responses, this will be useful.  By … Continue reading

Posted in Ruby on Rails, Tutorials | Tagged , | 3 Comments

Testing associations with factory girl

Associations are very important when we are working with relational databases. Writing relations in models is easy but when it comes testing them, it is a painful task. Factory girl associations makes this easy. Before going into details, lets get … Continue reading

Posted in Ruby on Rails, Tutorials | Tagged , , | 8 Comments