RubyGems.org

factory_boy

2.0.2

Factory Girl with database accesses stubbed. The versions 2+ only work with Rails 3 (AR 3+) for stubbing queries. Now handle Rails 3 (only Rails 3) queries stubbing, Transform rail3 queries into ruby select on Plants created with factory boy. Example user = Plant(:user => 'toto', :addresses => [Plant(:address, :street => 'here')]) User.where(:name => 'toto').where('addresses.street = 'here').joins(:addresses) will be stubbed into a select ruby on plants and return here, user. See more on github and in unit tests. Compatible ruby 1.9.2.

installgem install factory_boy -v 2.0.2
Authors

Philippe Cantin

12,034 total downloads 1,383 for this version
Owners

4f399ff54aa7e90535716f6c5120897a

Gemfile
gem 'factory_boy', '~> 2.0.2'
Versions
  1. 2.0.3 October 14, 2012 (19.5 KB)
  2. 2.0.2 April 28, 2011 (19 KB)
  3. 2.0.1 January 22, 2011 (18.5 KB)
  4. 2.0.0 January 22, 2011 (18.5 KB)
  5. 1.0.5 October 20, 2010 (7 KB)
Show all versions (10 total)