<commit_before>require_relative '../spec_helper'

describe 'rails_part::setup' do
  let(:chef_run) do
    ChefSpec::Runner.new(
      cookbook_path: ['site-cookbooks', 'cookbooks'],
      platform:      'centos',
      version:       '6.5'
    ).converge('rails_part::setup')
  end

  it 'install git' do
    expect(chef_run).to include_recipe 'git'
  end

  it 'install build-essential' do
    expect(chef_run).to include_recipe('build-essential::_rhel')
  end

  it 'install mysql-devel' do
    expect(chef_run).to install_package('sql-devel')
  end

  it 'install sqlite-devel' do
    expect(chef_run).to install_package('sqlite-devel')
  end

  it 'rbenv setup' do
    expect(chef_run).to include_recipe 'rails_part::rbenv_setup'
  end

  it 'iptables disabled' do
    expect(chef_run).to include_recipe 'iptables::disabled'
  end

  it 'create application user' do
    expect(chef_run).to include_recipe 'rails_part::create_user'
  end
end<commit_msg>Modify package name of mysql-devel was wrong<commit_after>require_relative '../spec_helper'

describe 'rails_part::setup' do
  let(:chef_run) do
    ChefSpec::Runner.new(
      cookbook_path: ['site-cookbooks', 'cookbooks'],
      platform:      'centos',
      version:       '6.5'
    ).converge('rails_part::setup')
  end

  it 'install git' do
    expect(chef_run).to include_recipe 'git'
  end

  it 'install build-essential' do
    expect(chef_run).to include_recipe('build-essential::_rhel')
  end

  it 'install mysql-devel' do
    expect(chef_run).to install_package('mysql-devel')
  end

  it 'install sqlite-devel' do
    expect(chef_run).to install_package('sqlite-devel')
  end

  it 'rbenv setup' do
    expect(chef_run).to include_recipe 'rails_part::rbenv_setup'
  end

  it 'iptables disabled' do
    expect(chef_run).to include_recipe 'iptables::disabled'
  end
end
{'fraction_non_alphanumeric': 0.11963023382272975, 'fraction_numerical': 0.002175095160413268, 'mean_word_length': 3.8293963254593177, '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': '6722186', 'n_tokens_mistral': 676, 'n_tokens_neox': 640, 'n_words': 140}