Skip to content

Commit 330035b

Browse files
author
Kevin Paulisse
committed
Tests Puppet 3.x compatible
1 parent 1d5a238 commit 330035b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/octocatalog-diff/integration/preserve_environments_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
end
2828

2929
it 'should fail because ::bar could not be located' do
30-
expect(@result.exception.message).to match(/Could not find class ::bar for rspec-node.github.net/)
30+
expect(@result.exception.message).to match(/Could not find class (::)?bar for rspec-node.github.net/)
3131
end
3232
end
3333

@@ -294,7 +294,7 @@
294294
it 'should error on missing site directory' do
295295
expect(@result.exitcode).to eq(-1), OctocatalogDiff::Integration.format_exception(@result)
296296
expect(@result.exception).to be_a_kind_of(OctocatalogDiff::CatalogDiff::Cli::Catalogs::CatalogError)
297-
expect(@result.exception.message).to match(/Could not find class (::)?sitetest.+ at/)
297+
expect(@result.exception.message).to match(/Could not find class (::)?sitetest/)
298298
end
299299
end
300300
end

0 commit comments

Comments
 (0)