Sha256: cbf8af82ee073561ce75efd9b7cdb465c54db0027dccef3e9586bf88f8c9b726
Contents?: true
Size: 587 Bytes
Versions: 7
Compression:
Stored size: 587 Bytes
Contents
FactoryGirl.define do factory :organization, :class => CFoundry::V2::Organization do guid { FactoryGirl.generate(:guid) } name { FactoryGirl.generate(:random_string) } ignore do spaces [] domains [] end initialize_with do CFoundry::V2::Organization.new(nil, nil) end after_build do |org, evaluator| evaluator.spaces.each { |s| s.organization = org } evaluator.domains.each { |s| s.owning_organization = org } RR.stub(org).spaces { evaluator.spaces } RR.stub(org).domains { evaluator.domains } end end end
Version data entries
7 entries across 7 versions & 2 rubygems