<commit_before>describe 'devbox::packages' do
  let(:chef_run) { ChefSpec::ServerRunner.new.converge(described_recipe) }
  
  %w(joe build-essential rbenv ruby-build ssl-cert).each do |pkg|
    it "creates directory #{pkg}" do
      expect(chef_run).to install_package(pkg)
    end
  end
end<commit_msg>add package tests<commit_after>describe 'devbox::packages' do
  let(:chef_run) do
    ChefSpec::ServerRunner.new do |node|
      node.automatic['platform'] = 'platform'
      node.normal['devbox']['packages']['platform']['editor']     = %w(editor_pkg)
      node.normal['devbox']['packages']['platform']['build']      = %w(build_pkg)
      node.normal['devbox']['packages']['platform']['misc']       = %w(misc_pkg)
    end.converge(described_recipe)
  end

  it 'installs editor packages' do
    expect(chef_run).to install_package('editor_pkg')
  end

  it 'installs build packages' do
    expect(chef_run).to install_package('build_pkg')
  end

  it 'installs misc packages' do
    expect(chef_run).to install_package('misc_pkg')
  end
end
{'fraction_non_alphanumeric': 0.14655172413793102, 'fraction_numerical': 0.0, 'mean_word_length': 4.529100529100529, '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': '6573877', 'n_tokens_mistral': 360, 'n_tokens_neox': 344, 'n_words': 66}