<commit_before>require 'spec_helper'

describe 'gluster::client', type: :class do
  describe 'when installing on Red Hat Enterprise Linux' do
    let :facts do
      {
        osfamily: 'RedHat',
        architecture: 'x86_64',
      }
    end
    context 'when using all default values' do
      it 'should include gluster::install' do
        should create_class('gluster::install').with(
          repo: true,
          client_package: 'glusterfs-fuse',
          version: 'LATEST',
        )
      end
    end
    context 'when a version number is specified' do
      let :params do { version: '3.6.1' } end
      it 'should include gluster::install with version 3.6.1' do
        should create_class('gluster::install').with(<commit_msg>implement rspec-puppet-facts in client_spec.rb<commit_after>require 'spec_helper'

describe 'gluster::client', :type => :class do
  on_supported_os.each do |os, facts|
    context "on #{os} with all defaults" do
      let(:facts) do
        facts
      end
      it { should compile.with_all_deps }

      it 'should include gluster::install' do
        should create_class('gluster::install').with(
          repo: true,
          client_package: 'glusterfs-fuse',
          version: 'LATEST',
        )
      end
    end
    context 'when a version number is specified' do
      let :params do { version: '3.6.1' } end
      it 'should include gluster::install with version 3.6.1' do
        should create_class('gluster::install').with(
{'fraction_non_alphanumeric': 0.10465901417960838, 'fraction_numerical': 0.010803511141120865, 'mean_word_length': 2.5710843373493977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4710356', 'n_tokens_mistral': 451, 'n_tokens_neox': 440, 'n_words': 136}