<commit_before>require_relative '../spec_helper'

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

  it 'include recipe git' do
    expect(chef_run).to include_recipe 'git::default'
  end

  it 'include recipe build-essential:[platform_family]' do
    expect(chef_run).to include_recipe 'build-essential::_rhel'
  end

  it 'include recipe pre_script' do
    expect(chef_run).to include_recipe 'rails_part::pre_script'
  end

  it 'deploy rails application' do

    expect(chef_run).to ChefSpec::Matchers::ResourceMatcher.new(:application, :deploy, 'app').with(<commit_msg>Delete chefspec examples for resources already deleted<commit_after>require_relative '../spec_helper'

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

  it 'include recipe pre_script' do
    expect(chef_run).to include_recipe 'rails_part::pre_script'
  end

  it 'deploy rails application' do

    expect(chef_run).to ChefSpec::Matchers::ResourceMatcher.new(:application, :deploy, 'app').with(
{'fraction_non_alphanumeric': 0.12364425162689804, 'fraction_numerical': 0.0028922631959508315, 'mean_word_length': 4.427450980392157, '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': '3754993', 'n_tokens_mistral': 488, 'n_tokens_neox': 450, 'n_words': 93}