File: autorequire_cycle_spec.rb

package info (click to toggle)
ruby-puppet-resource-api 1.8.16-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,228 kB
  • sloc: ruby: 9,519; sh: 4; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'test_module::autorequire_cycle' do
  context 'with make_cycle => false' do
    let(:params) { { make_cycle: false } }

    it { is_expected.to compile }
  end

  context 'with make_cycle => true' do
    let(:params) { { make_cycle: true } }

    it { is_expected.not_to compile }
  end
end