File: have_class_count_spec.rb

package info (click to toggle)
ruby-rspec-puppet 4.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,444 kB
  • sloc: ruby: 6,377; makefile: 6
file content (17 lines) | stat: -rw-r--r-- 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

describe 'RSpec::Puppet::ManifestMatchers.have_class_count' do
  subject(:example_group) { Class.new { extend RSpec::Puppet::ManifestMatchers } }

  let(:expected) { 123 }

  after do
    example_group.have_class_count(expected)
  end

  it 'initialises a CountGeneric matcher for Class resources' do
    expect(RSpec::Puppet::ManifestMatchers::CountGeneric).to receive(:new).with('class', expected)
  end
end