Sha256: 93f0279fddc2ff476a85e8fc440a0aca15f1157e5a7dd2aa3601920790db1d48

Contents?: true

Size: 401 Bytes

Versions: 6

Compression:

Stored size: 401 Bytes

Contents

FactoryGirl.define do
  factory :client, :class => CFoundry::V2::Client do
    ignore do
      routes []
      apps []
      frameworks []
    end

    after_build do |client, evaluator|
      RR.stub(client).logged_in? { true }
      RR.stub(client).routes { evaluator.routes }
      RR.stub(client).apps { evaluator.apps }
      RR.stub(client).frameworks { evaluator.frameworks }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vmc-0.4.2 spec/factories/client_factory.rb
vmc-0.4.1 spec/factories/client_factory.rb
vmc-0.4.0 spec/factories/client_factory.rb
vmc-0.4.0.beta.97 vmc-ng/spec/factories/client_factory.rb
vmc-0.4.0.beta.96 vmc-ng/spec/factories/client_factory.rb
vmc-0.4.0.beta.94 vmc-ng/spec/factories/client_factory.rb