summaryrefslogtreecommitdiff
path: root/spec/functions/defined_with_params_spec.rb
diff options
context:
space:
mode:
authorHailee Kenney <hailee@puppet.com>2017-03-03 16:40:32 +0000
committerGitHub <noreply@github.com>2017-03-03 16:40:32 +0000
commit01b951b4966c1fe150a160fdc8f4196b6e21ee51 (patch)
tree1643609784f5b46f3ef7ff1ca1c16e08b8c24d5f /spec/functions/defined_with_params_spec.rb
parent9e28f8f80ab512efff5eba4fecbaadb4220ca01c (diff)
parent2f463600c2c0b6ac95ec71d3e5b17d1b2abdcd22 (diff)
Merge pull request #732 from pmcmaw/FM-6063-unitTests
(FM-6063) - Unit tests for high effort functions
Diffstat (limited to 'spec/functions/defined_with_params_spec.rb')
-rwxr-xr-xspec/functions/defined_with_params_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/functions/defined_with_params_spec.rb b/spec/functions/defined_with_params_spec.rb
index e2f3abe..a0db0b7 100755
--- a/spec/functions/defined_with_params_spec.rb
+++ b/spec/functions/defined_with_params_spec.rb
@@ -11,6 +11,11 @@ describe 'defined_with_params' do
it { is_expected.to run.with_params('User[dan]', {}).and_return(true) }
it { is_expected.to run.with_params('User[bob]', {}).and_return(false) }
it { is_expected.to run.with_params('User[dan]', {'foo' => 'bar'}).and_return(false) }
+
+ context 'should run with UTF8 and double byte characters' do
+ it { is_expected.to run.with_params('User[ĵĭмოү]', {}).and_return(false) }
+ it { is_expected.to run.with_params('User[ポーラ]', {}).and_return(false) }
+ end
end
describe 'when compared against a resource with attributes' do