@@ -129,7 +129,7 @@ def self.catalog_contains_resource(result, type, title)
129
129
if OctocatalogDiff ::Spec . is_puppet5?
130
130
it 'should pass through the error messages from Puppet' do
131
131
msg = @result . exception . message
132
- expect ( msg ) . to match ( /Error: Could not find resource 'Exec\[ subscribe target\] ' in parameter 'subscribe' at / )
132
+ expect ( msg ) . to match ( /Error: Could not find resource 'Exec\[ subscribe target\] ' in parameter 'subscribe'/ )
133
133
end
134
134
else
135
135
# Multiple line numbers given because Puppet 4.x and 3.8 correspond to first and last line of resource, respectively.
@@ -162,7 +162,7 @@ def self.catalog_contains_resource(result, type, title)
162
162
if OctocatalogDiff ::Spec . is_puppet5?
163
163
it 'should pass through the error messages from Puppet' do
164
164
msg = @result . exception . message
165
- expect ( msg ) . to match ( /Error: Could not find resource 'Exec\[ before target\] ' in parameter 'before' at / )
165
+ expect ( msg ) . to match ( /Error: Could not find resource 'Exec\[ before target\] ' in parameter 'before'/ )
166
166
end
167
167
else
168
168
# rubocop:disable Metrics/LineLength
@@ -190,7 +190,7 @@ def self.catalog_contains_resource(result, type, title)
190
190
if OctocatalogDiff ::Spec . is_puppet5?
191
191
it 'should pass through the error messages from Puppet' do
192
192
msg = @result . exception . message
193
- expect ( msg ) . to match ( /Error: Could not find resource 'Test::Foo::Bar\[ notify target\] ' in parameter 'notify' at / )
193
+ expect ( msg ) . to match ( /Error: Could not find resource 'Test::Foo::Bar\[ notify target\] ' in parameter 'notify'/ )
194
194
end
195
195
else
196
196
# rubocop:disable Metrics/LineLength
@@ -218,7 +218,7 @@ def self.catalog_contains_resource(result, type, title)
218
218
if OctocatalogDiff ::Spec . is_puppet5?
219
219
it 'should pass through the error messages from Puppet' do
220
220
msg = @result . exception . message
221
- expect ( msg ) . to match ( /Error: Could not find resource 'Exec\[ require target\] ' in parameter 'require' at / )
221
+ expect ( msg ) . to match ( /Error: Could not find resource 'Exec\[ require target\] ' in parameter 'require'/ )
222
222
end
223
223
else
224
224
# rubocop:disable Metrics/LineLength
@@ -246,7 +246,7 @@ def self.catalog_contains_resource(result, type, title)
246
246
247
247
it 'should pass through the error messages from Puppet' do
248
248
msg = @result . exception . message
249
- expect ( msg ) . to match ( /Error: Could not find resource 'Exec\[ subscribe target\] ' in parameter 'subscribe' at / )
249
+ expect ( msg ) . to match ( /Error: Could not find resource 'Exec\[ subscribe target\] ' in parameter 'subscribe'/ )
250
250
end
251
251
else
252
252
it 'should succeed' do
0 commit comments