Sha256: d77a9fd4e8de7c1fea2b3f141770dcd0d1fbb972d2864f67aa4f1e01a3ad8d29
Contents?: true
Size: 973 Bytes
Versions: 8
Compression:
Stored size: 973 Bytes
Contents
class StubVdc def initialize @edge_gateways = [] @vapps = [] @description = 'vdc-1-description' end def edge_gateways(edge_gateways) @edge_gateways = edge_gateways self end def vapps(vapps) @vapps = vapps self end def desc(desc) @description = desc self end def build vdc = RSpec::Mocks::Mock.new(:vdc, :id => 'vdc-1', :description => @description, :name => 'atomic reactor data centre', :network_quota => 20, :nic_quota => 0, :vm_quota => 150, :compute_capacity => {:storage => '200'} ) vdc.stub(:edgeGateways).and_return( @edge_gateways ) vdc.stub(:vapps).and_return( @vapps) vdc end end class StubCollectionBuilders def self.vdcs(vdc) [vdc] end end
Version data entries
8 entries across 8 versions & 1 rubygems