Sha256: d016fa2684396db75b36062c9f8bf0a0a4c27e43b9b2bb4398d25522b721adc3
Contents?: true
Size: 717 Bytes
Versions: 1
Compression:
Stored size: 717 Bytes
Contents
require 'spec_helper' require 'profitbricks_datacenter_list' Chef::Knife::ProfitbricksDatacenterList.load_deps describe Chef::Knife::ProfitbricksDatacenterList do let(:datacenter_list) { Chef::Knife::ProfitbricksDatacenterList.new } before :each do allow(datacenter_list).to receive(:puts) end describe '#run' do it 'should output the column headers' do expect(datacenter_list).to receive(:puts).with(/^ID\s+Name\s+Description\s+Location\s+Version\s*$/) datacenter_list.run end it 'should output the data center locations' do expect(datacenter_list).to receive(:puts).with(/^ID\s+Name\s+Description\s+Location\s+Version\s*$/) datacenter_list.run end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knife-profitbricks-2.0.1 | spec/chef/knife/profitbricks_datacenter_list_spec.rb |