diff options
author | Hailee Kenney <hailee@puppet.com> | 2017-03-03 16:40:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-03 16:40:32 +0000 |
commit | 01b951b4966c1fe150a160fdc8f4196b6e21ee51 (patch) | |
tree | 1643609784f5b46f3ef7ff1ca1c16e08b8c24d5f /spec/functions/getparam_spec.rb | |
parent | 9e28f8f80ab512efff5eba4fecbaadb4220ca01c (diff) | |
parent | 2f463600c2c0b6ac95ec71d3e5b17d1b2abdcd22 (diff) |
Merge pull request #732 from pmcmaw/FM-6063-unitTests
(FM-6063) - Unit tests for high effort functions
Diffstat (limited to 'spec/functions/getparam_spec.rb')
-rwxr-xr-x | spec/functions/getparam_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/functions/getparam_spec.rb b/spec/functions/getparam_spec.rb index e4ef9e6..522ed3b 100755 --- a/spec/functions/getparam_spec.rb +++ b/spec/functions/getparam_spec.rb @@ -24,4 +24,12 @@ describe 'getparam' do it { is_expected.to run.with_params('User[one]', 'shell').and_return('/bin/sh') } it { is_expected.to run.with_params('User[one]', 'managehome').and_return(false) } end + + describe 'when compared against a user resource with UTF8 and double byte params' do + let(:pre_condition) { 'user { ["三", "ƒốưř"]: ensure => present }' } + + it { is_expected.to run.with_params('User[三]', 'ensure').and_return('present') } + it { is_expected.to run.with_params('User[ƒốưř]', 'ensure').and_return('present') } + + end end |