1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
# frozen_string_literal: true
require 'spec_helper'
describe 'split' do
describe 'rspec group' do
it 'has a catalogue method' do
expect(catalogue).to be_a(Puppet::Resource::Catalog)
end
it 'catalogue should not change after subject is called' do
expect(catalogue).to be_a(Puppet::Resource::Catalog)
pre_id = catalogue.object_id
expect(subject).to run.with_params('aoeu', 'o').and_return(%w[a eu])
post_id = catalogue.object_id
expect(pre_id).to eq post_id
end
end
end
|