<commit_before># encoding: UTF-8

# -*- mode: ruby -*-
# vi: set ft=ruby :

require 'chefspec'
require_relative 'spec_helper'

describe 'paramount::_system' do
  before { stub_resources }

  let(:chef_run) { ChefSpec::ServerRunner.new.converge(described_recipe) }

  # sysctl
  %w(ntp build-essential packages ubuntu sudo rsyslog openssh).each do |recipe|
    it "Includes recipe: #{recipe}" do
      expect(chef_run).to include_recipe(recipe)
    end
  end

  it 'installs vim' do
    expect(chef_run).to install_package('vim')
  end

  it 'writes sshd config' do
    expect(chef_run).to render_file('/etc/ssh/sshd_config')
  end<commit_msg>disable vim package install via packages cookbook<commit_after># encoding: UTF-8

# -*- mode: ruby -*-
# vi: set ft=ruby :

require 'chefspec'
require_relative 'spec_helper'

describe 'paramount::_system' do
  before { stub_resources }

  let(:chef_run) { ChefSpec::ServerRunner.new.converge(described_recipe) }

  # sysctl
  %w(ntp build-essential packages ubuntu sudo rsyslog openssh).each do |recipe|
    it "Includes recipe: #{recipe}" do
      expect(chef_run).to include_recipe(recipe)
    end
  end

  # it 'installs vim' do
  #   expect(chef_run).to install_package('vim')
  # end

  it 'writes sshd config' do
    expect(chef_run).to render_file('/etc/ssh/sshd_config')
  end
{'fraction_non_alphanumeric': 0.12141779788838612, 'fraction_numerical': 0.0015082956259426848, 'mean_word_length': 4.1434108527131785, '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': '6621945', 'n_tokens_mistral': 505, 'n_tokens_neox': 468, 'n_words': 111}