Skip to content

Commit 0e457da

Browse files
authored
Merge pull request #8889 from cthorn42/maint/6.x/fix_resource_spec_for_older_ruby_versions
(maint) Fix resources_spec for Ruby versions < 2.5
2 parents c8538fc + 35b70a5 commit 0e457da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/integration/application/resource_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
end
2929

3030
it 'lists types from the default environment' do
31+
begin
3132
modulepath = File.join(Puppet[:codedir], 'modules', 'test', 'lib', 'puppet', 'type')
3233
FileUtils.mkdir_p(modulepath)
3334
File.write(File.join(modulepath, 'test_resource_spec.rb'), 'Puppet::Type.newtype(:test_resource_spec)')
@@ -38,6 +39,7 @@
3839
}.to exit_with(0).and output(/test_resource_spec/).to_stdout
3940
ensure
4041
Puppet::Type.rmtype(:test_resource_spec)
42+
end
4143
end
4244
end
4345

0 commit comments

Comments
 (0)