<commit_before>require 'spec_helper'

describe 'gunicorn::default' do
  let(:gunicorn_virtualenv) { '/srv/gunicorn/test' }

  cached(:chef_run) do
    ChefSpec::Runner.new do |node|
      node.set['gunicorn']['virtualenv'] = gunicorn_virtualenv
    end.converge(described_recipe)
  end

  it 'should install gunicorn using the proper virtualenv' do
    expect(chef_run).to install_gunicorn('gunicorn')
      .with_virtualenv(gunicorn_virtualenv)
  end
end<commit_msg>Update for chefspec 4.X<commit_after>require 'spec_helper'

describe 'gunicorn::default' do
  let(:gunicorn_virtualenv) { '/srv/gunicorn/test' }

  cached(:chef_run) do
    ChefSpec::ServerRunner.new do |node|
      node.set['gunicorn']['virtualenv'] = gunicorn_virtualenv
    end.converge(described_recipe)
  end

  it 'should install gunicorn using the proper virtualenv' do
    expect(chef_run).to install_gunicorn('gunicorn')
      .with_virtualenv(gunicorn_virtualenv)
  end
end
{'fraction_non_alphanumeric': 0.11052631578947368, 'fraction_numerical': 0.0010526315789473684, 'mean_word_length': 4.981132075471698, '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': '942529', 'n_tokens_mistral': 344, 'n_tokens_neox': 315, 'n_words': 62}