<commit_before>require 'spec_helper'

os = {
  :family => 'ubuntu'
}

case property[:os][:family]
when /centos/
  describe package('vim-enhanced') do
    it { should be_installed }
  end

  describe package('docker-io') do
    it { should be_installed }
  end

  describe package('chefdk') do
    it { should be_installed.with_version('0.2.1') }
  end

when /ubuntu/
  describe package('vim') do
    it { should be_installed }
  end

  describe package('lxc-docker') do
    it { should be_installed }
  end

  describe package('chefdk') do
    it { should be_installed.with_version('0.2.1-1') }
  end

end

describe package('git') do
  it { should be_installed }
end

describe service('docker') do
#  it { should be_enabled }
  it { should be_running }
end

describe file('/home/vagrant/.bashrc') do
  its(:content) { should match /eval \"\$\(chef shell-init bash\)\"/ }
end

describe file('/home/vagrant/.zshrc') do
  its(:content) { should match /eval \"\$\(chef shell-init zsh\)\"/ }
end

<commit_msg>fix spec<commit_after>require 'spec_helper'

case property[:os][:family]
when /centos/
  describe package('vim-enhanced') do
    it { should be_installed }
  end

  describe package('docker-io') do
    it { should be_installed }
  end

  describe package('chefdk') do
    it { should be_installed.with_version('0.2.1') }
  end

when /ubuntu/
  describe package('vim') do
    it { should be_installed }
  end

  describe package('lxc-docker') do
    it { should be_installed }
  end

  describe package('chefdk') do
    it { should be_installed.with_version('0.2.1-1') }
  end

end

describe package('git') do
  it { should be_installed }
end

describe service('docker') do
#  it { should be_enabled }
  it { should be_running }
end

describe file('/home/vagrant/.bashrc') do
  its(:content) { should match /eval \"\$\(chef shell-init bash\)\"/ }
end

describe file('/home/vagrant/.zshrc') do
  its(:content) { should match /eval \"\$\(chef shell-init zsh\)\"/ }
end


{'fraction_non_alphanumeric': 0.14205986808726534, 'fraction_numerical': 0.007102993404363267, 'mean_word_length': 3.3628318584070795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6579125', 'n_tokens_mistral': 733, 'n_tokens_neox': 675, 'n_words': 184}