summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPaula McMaw <paula@puppet.com>2017-02-21 16:04:47 +0000
committerPaula McMaw <paula@puppet.com>2017-02-21 16:04:47 +0000
commit150696a028d047321e9e53081d0922e039a66312 (patch)
treefb26bbd9b120aedace303edf160ebd60f1182273 /spec
parent846ddcd09e1a5bf27acb6cb5fd1e0854bb1538f6 (diff)
Adding unit test for i18n delete_value function
Diffstat (limited to 'spec')
-rwxr-xr-xspec/functions/delete_values_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/functions/delete_values_spec.rb b/spec/functions/delete_values_spec.rb
index 12907d4..329fa0b 100755
--- a/spec/functions/delete_values_spec.rb
+++ b/spec/functions/delete_values_spec.rb
@@ -19,7 +19,11 @@ describe 'delete_values' do
.and_return({'key1' => 'value1'})
}
it { is_expected.to run \
- .with_params({'key1' => 'value1', 'key2' => 'value to delete'}, 'value to delete') \
+ .with_params({'ҝếỵ1 ' => 'νâĺūẹ1', 'ҝếỵ2' => 'value to delete'}, 'value to delete') \
+ .and_return({'ҝếỵ1 ' => 'νâĺūẹ1'})
+ }
+ it { is_expected.to run \
+ .with_params({'key1' => 'value1', 'key2' => 'νǎŀữ℮ ťớ đêłểťė'}, 'νǎŀữ℮ ťớ đêłểťė') \
.and_return({'key1' => 'value1'})
}
it { is_expected.to run \