Sha256: f3b24d96b488eedd52306d3c8a17bfac2fc52c0997f6e4b0d976f08e59f32141
Contents?: true
Size: 489 Bytes
Versions: 4
Compression:
Stored size: 489 Bytes
Contents
FactoryGirl.define do factory :service_instance, :class => CFoundry::V2::ServiceInstance do guid { FactoryGirl.generate(:guid) } name { FactoryGirl.generate(:random_string) } ignore do service_bindings [] end initialize_with do CFoundry::V2::ServiceInstance.new(nil, nil) end after_build do |svc, evaluator| %w{name service_bindings}.each do |attr| RR.stub(svc).__send__(attr) { evaluator.send(attr) } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems