Sha256: 9ef70097672d6dbef84b84f1cf90dc5da928334f987a5e8f90fcbf48d2103664

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

Contents

require 'spec_helper'
require 'profitbricks_contract_list'

Chef::Knife::ProfitbricksContractList.load_deps

describe Chef::Knife::ProfitbricksContractList do
  let(:contract_list) { Chef::Knife::ProfitbricksContractList.new }

  before :each do
    allow(contract_list).to receive(:puts)
  end

  describe '#run' do
    it 'should output the column headers' do
      expect(contract_list).to receive(:puts).with('Contract Type: contract')
      expect(contract_list).to receive(:puts).with('Status: BILLABLE')
      contract_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_contract_list_spec.rb