2
我想建立使用规范的考验,我感到困惑的使用FactoryGirl或工厂, 我已经安装了FactoryGirl 2.3.2,正如我在Gemfile中Rails 3.1,FactoryGirl或Factory?
有gem "factory_girl_rails", "~> 1.2"
厂的声明是通过/ home/SAM /.rvm/gems/ruby-1.9.3-p0/gems/factory_girl-2.3.2/lib/factory_girl/deprecated.rb
我看到在示例中使用这样的工厂:How do I create an association with a has_many :through relationship in Factory Girl?
任何想法,请?在Rails 3.1上使用Factory可以吗?不总是 ?一点也不 ?