Sha256: 6bf4b72eec468d0587afcd3a3727d1c788a5eccf8766f90ad2a05d031e9f2857
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
class StubApp < OpenStruct def vhosts services.map(&:vhosts).flatten end def each_service(&block) return enum_for(:each_service) if block.nil? services.each(&block) end end Fabricator(:app, from: :stub_app) do handle 'hello' status 'provisioned' account services { [] } after_create { |app| app.account.apps << app } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aptible-cli-0.14.1 | spec/fabricators/app_fabricator.rb |
aptible-cli-0.14.0 | spec/fabricators/app_fabricator.rb |