<commit_before>require 'spec_helper'

describe 'homes::home', :type => :define do
  
  myuser = { 
    'testuser' => { 'groups' => ['testgroup1', 'testgroup2'] }
  }
  
  context 'manage the users' do
    
    describe 'ensure that the user and home directory exists' do
      
      let :title do "user exists" end
      let :params do 
        { 'user' =>  myuser }
      end
      it { should compile.with_all_deps }
      
      it { should contain_user('testuser').with(
        'groups' => ['testgroup1', 'testgroup2']
      ) }
      
      it { should contain_file('/home/testuser').with(
        'ensure' => 'directory',
        'owner'  => 'testuser',
        'mode'   => '0600',
      )}
    end
  end
  
end<commit_msg>fixing syntax issue with causes rspec to fail on ruby 1.8.7<commit_after>require 'spec_helper'

describe 'homes::home', :type => :define do
  
  myuser = { 
    'testuser' => { 'groups' => ['testgroup1', 'testgroup2'] }
  }
  
  context 'manage the users' do
    
    describe 'ensure that the user and home directory exists' do
      
      let :title do "user exists" end
      let :params do 
        { 'user' =>  myuser }
      end
      it { should compile.with_all_deps }
      
      it { should contain_user('testuser').with(
        'groups' => ['testgroup1', 'testgroup2']
      ) }
      
      it { should contain_file('/home/testuser').with(
        'ensure' => 'directory',
        'owner'  => 'testuser',
        'mode'   => '0600'
      )}
    end
  end
  
end
{'fraction_non_alphanumeric': 0.13735899137358992, 'fraction_numerical': 0.012607830126078301, 'mean_word_length': 2.109278350515464, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '1429767', 'n_tokens_mistral': 503, 'n_tokens_neox': 486, 'n_words': 129}