Skip to content

Commit

Permalink
(fixup) update stderr matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed Apr 19, 2018
1 parent a5a08e6 commit 27a810c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/acceptance/new_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
context 'when validating the generated code' do
describe command('pdk validate ruby') do
its(:stdout) { is_expected.to be_empty }
its(:stderr) { is_expected.to match(%r{using latest available puppet}i) }
its(:stderr) { is_expected.to match(%r{using ruby \d+\.\d+\.\d+}i) }
its(:stderr) { is_expected.to match(%r{using puppet \d+\.\d+\.\d+}i) }
its(:exit_status) { is_expected.to eq(0) }
end
end
Expand Down
3 changes: 2 additions & 1 deletion spec/acceptance/report_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ class foo { }
context 'when not run interactively' do
describe command('pdk validate puppet manifests/init.pp') do
its(:exit_status) { is_expected.to eq(0) }
its(:stderr) { is_expected.to match(%r{using latest available puppet}i) }
its(:stderr) { is_expected.to match(%r{using ruby \d+\.\d+\.\d+}i) }
its(:stderr) { is_expected.to match(%r{using puppet \d+\.\d+\.\d+}i) }
its(:stdout) { is_expected.to match(%r{^warning:.*#{Regexp.escape(init_pp)}.*class not documented}) }
end
end
Expand Down

0 comments on commit 27a810c

Please sign in to comment.