<commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4
require 'spec_helper'

describe 'puppetrspec', :type => :class do

    let :filename do
        '/tmp/puppetrspec_example.txt'
    end

    context 'with ensure specified' do
        
        let :params do {
            :ensure     => 'something NOT UNDEF'
        } end

        it 'should have file' do
            should contain_file(filename)
        end

    end

    context 'with ensure undef' do
        
        let :params do {
            :ensure     => '# WHAT SHOULD WE USE HERE TO PASS PUPPET undef VALUE ?#'
        } end

        it 'should NOT have file' do
            should_not contain_file(filename)
        end

    end


end<commit_msg>Fix spec file that wasn't working at al<commit_after># vim: tabstop=4 shiftwidth=4 softtabstop=4
require 'spec_helper'

describe 'puppetrspec', :type => :class do

    let :filename do
        '/tmp/puppetrspec_example.txt'
    end

    context 'with ensure specified' do
        
        let :params do {
            :ensure     => 'something NOT UNDEF'
        } end

        it 'should have File with ensure file' do
            should contain_file(filename).with_ensure('file')
        end

    end

    context 'with ensure undef' do
        
        let :params do {
            :ensure     => '# WHAT SHOULD WE USE HERE TO PASS PUPPET undef VALUE ?#'
        } end

        it 'should have File with ensure absent' do
            should contain_file(filename).with_ensure('absent')
        end

    end


end
{'fraction_non_alphanumeric': 0.07757496740547588, 'fraction_numerical': 0.003911342894393742, 'mean_word_length': 1.8584729981378025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6624376', 'n_tokens_mistral': 468, 'n_tokens_neox': 436, 'n_words': 151}