Sha256: 6a3336c26014c1f2f9780746a03858aa4e442c3ebf6928df74f56b2a4442a791

Contents?: true

Size: 886 Bytes

Versions: 1

Compression:

Stored size: 886 Bytes

Contents

require 'chefspec'
require_relative '../spec_helper'

describe 'spec::package' do
  let(:chef_run) { ChefSpec::Runner.new.converge(described_recipe) }

  it 'installs the defaultable package' do
    expect(chef_run).to install_package('defaultable')
  end

  it 'installs the identifiable package' do
    expect(chef_run).to install_package('identifiable')
  end

  it 'installs the installable package' do
    expect(chef_run).to install_package('installable')
  end

  it 'purges the purgeable package' do
    expect(chef_run).to purge_package('purgeable')
  end

  it 'reconfigs the reconfigurable package' do
    expect(chef_run).to reconfig_package('reconfigurable')
  end

  it 'removes the removeable package' do
    expect(chef_run).to remove_package('removeable')
  end

  it 'upgrades the upgradable package' do
    expect(chef_run).to upgrade_package('upgradable')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chefspec-bootstrap-0.1.0 spec/meta/package_spec.rb