Sha256: 9512dd119ce4a638e95dd3e16a5e1c1b45954cbf828e8fbc239012ed1e03eb4e
Contents?: true
Size: 665 Bytes
Versions: 1
Compression:
Stored size: 665 Bytes
Contents
require 'spec_helper' require 'profitbricks_location_list' Chef::Knife::ProfitbricksLocationList.load_deps describe Chef::Knife::ProfitbricksLocationList do before :each do subject { Chef::Knife::ProfitbricksLocationList.new } allow(subject).to receive(:puts) end describe '#run' do it 'should output the column headers' do expect(subject).to receive(:puts).with("ID Name \nde/fkb karlsruhe\nde/fra frankfurt\nus/las lasvegas \nus/ewr newark \n") subject.run end it 'should output the data center locations' do expect(subject).to receive(:puts).with(/(?:us\/las)/) subject.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_location_list_spec.rb |