X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fpostgresql%2Fspec%2Funit%2Ffunctions%2Fpostgresql_password_spec.rb;h=89699f6fc76660b5ca37e13de31f741460b20eef;hb=a69999e580f8b3abd12446c2d6ad59e517651813;hp=0d043f87340643024a3f401640b7f3c3ea69af81;hpb=e7b6b352165009c385c52fcfe5a1055690dbfa4b;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/postgresql/spec/unit/functions/postgresql_password_spec.rb b/3rdparty/modules/postgresql/spec/unit/functions/postgresql_password_spec.rb index 0d043f873..89699f6fc 100644 --- a/3rdparty/modules/postgresql/spec/unit/functions/postgresql_password_spec.rb +++ b/3rdparty/modules/postgresql/spec/unit/functions/postgresql_password_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' describe 'postgresql_password', :type => :puppet_function do - it { should run.with_params('foo', 'bar'). + it { is_expected.to run.with_params('foo', 'bar'). and_return('md596948aad3fcae80c08a35c9b5958cd89') } + it { is_expected.to run.with_params('foo', 1234). + and_return('md539a0e1b308278a8de5e007cd1f795920') } end