<commit_before>require 'spec_helper.rb'

describe 'stash' do
  context 'default params' do
    it do
      should contain_class('stash::install')
      should contain_class('stash::config')
      should contain_class('stash::service')
    end

  end

  
end<commit_msg>testing defaults for installation<commit_after>require 'spec_helper.rb'

describe 'stash' do
describe 'stash::install' do

  it 'should install, but not upgrade, git' do
    should contain_package('git').with_ensure('installed')
  end

  context 'default params' do
    it { should contain_group('stash') }
    it { should contain_user('stash') }
    it 'should deploy stash 2.12.0 from tar.gz' do
      should contain_deploy__file("atlassian-stash-2.12.0.tar.gz")
    end
    it 'should manage the stash home directory' do
      should contain_file('/home/stash').with({
        'ensure' => 'directory',
        'owner' => 'stash',
        'group' => 'stash'
        })
    end
  end

end
end
{'fraction_non_alphanumeric': 0.11954261954261955, 'fraction_numerical': 0.008316008316008316, 'mean_word_length': 3.28, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '4132768', 'n_tokens_mistral': 315, 'n_tokens_neox': 302, 'n_words': 82}