阅读背景:

如何定义一个factory - girl工厂,该工厂返回带有字符串键的散列?

来源:互联网 

I have this code:

我有这段代码:

FactoryGirl.define do
  factory :gimme_a_hash, class: Hash do
    one 'the number 1'
    two 'the number 2'
  end
end
FactoryGirl.defin



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: