<commit_before>require 'spec_helper'

describe 'docker::lxc' do
  let(:chef_run) do
    ChefSpec::Runner.new.converge(described_recipe)
  end

  it 'includes the lxc recipe' do
    expect(chef_run).to include_recipe('lxc')
  end
end<commit_msg>added platform-specific specs to lxc_spec<commit_after>require 'spec_helper'

shared_examples_for "a non-ubuntu platform" do
  it 'installs the lxc package' do
    expect(chef_run).to install_package('lxc')
  end
end

describe 'docker::lxc' do

  context 'when running on debian' do
    it_behaves_like "a non-ubuntu platform" do
      let(:chef_run) do
        ChefSpec::Runner.new(platform: 'debian', version: '7.4').converge(described_recipe)
      end
    end
  end

  context 'when running on oracle' do
    it_behaves_like "a non-ubuntu platform" do
      let(:chef_run) do
        ChefSpec::Runner.new(platform: 'oracle', version: '6.5').converge(described_recipe)
      end
    end
  end

  context 'when running on ubuntu' do
    let(:chef_run) do
      ChefSpec::Runner.new.converge(described_recipe)
    end

    it 'includes the lxc recipe' do
      expect(chef_run).to include_recipe('lxc')
    end
  end
end
{'fraction_non_alphanumeric': 0.10042918454935622, 'fraction_numerical': 0.0034334763948497852, 'mean_word_length': 3.7016129032258065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2592323', 'n_tokens_mistral': 433, 'n_tokens_neox': 403, 'n_words': 103}