Skip to content

Commit 1560ebf

Browse files
author
David Swan
committed
(maint) - Update to wrap unit test return value in sensitive wrapper
As of rspec-puppet 2.8.0 support has been added for the `Sensitive` data type. With this change when checking sensitive values they should be wrapped within the new sensitive helper, i.e.: `it { is_expected.to contain_user(title).with('password' => sensitive('foo')) }`
1 parent 7485d9a commit 1560ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/defines/accounts_user_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
{ password: RSpec::Puppet::RawString.new("Sensitive('foo')") }
193193
end
194194

195-
it { is_expected.to contain_user(title).with('password' => 'foo') }
195+
it { is_expected.to contain_user(title).with('password' => sensitive('foo')) }
196196
end
197197

198198
describe 'when supplying resource defaults' do

0 commit comments

Comments
 (0)