Skip to content

Commit

Permalink
(CAT-2159) Update template-ref used in tests to resolve failures
Browse files Browse the repository at this point in the history
  • Loading branch information
david22swan committed Nov 11, 2024
1 parent 8dcfbb5 commit 310c173
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/acceptance/template_ref_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'pdk', 'new', 'module', 'foo',
'--skip-interview',
'--template-url', 'https://github.com/puppetlabs/pdk-templates',
'--template-ref', '2.7.1'
'--template-ref', '3.0.0'
]

around do |example|
Expand All @@ -34,20 +34,20 @@
it { is_expected.to be_file }

its(:content_as_json) do
is_expected.to include('template-ref' => match(/2\.7\.1/))
is_expected.to include('template-ref' => match(/3\.0\.0/))
end
end
end

context 'and then updating the module to a specific ref' do
before(:all) { Dir.chdir('foo') }

describe command('pdk update --template-ref 2.7.4 --force') do
describe command('pdk update --template-ref 3.2.0 --force') do
its(:exit_status) { is_expected.to eq(0) }

describe file('metadata.json') do
its(:content_as_json) do
is_expected.to include('template-ref' => match(/2\.7\.4/))
is_expected.to include('template-ref' => match(/3\.2\.0/))
end
end
end
Expand Down

0 comments on commit 310c173

Please sign in to comment.