这是一个有效的代码:
Public Property MemberValue as Object
Get
Static value as Object = Nothing
If (value is Nothing) Then
value = LoadMember()
End If
Return value
End Get
End Property
我想在没有FactoryGirl.define do
factory :address, class: 'Address' do |a|
#...
end
end
的情况下调用方法define
。
我试过了:
factoryGirl
我收到错误:
include FactoryGirl::Syntax::Methods
define do
factory :address, class: 'Address' do |a|
#...
end
end
有没有解决方案?