summaryrefslogtreecommitdiff
path: root/spec/default_spec.rb
blob: 346eebbc646fba6cc7f4371d8acee6dfb4774ba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
describe "stronglifters::default" do
  subject do
    ChefSpec::SoloRunner.new do |node|
      node.set["stronglifters"]["packages"] = packages
    end.converge(described_recipe)
  end

  let(:packages) { [ "vim" ] }

  it "installs the base packages" do
    expect(subject).to install_package(packages)
  end

  it "installs logrotate" do
    expect(subject).to install_package("logrotate")
  end
end