summaryrefslogtreecommitdiff
path: root/spec/functions/count_spec.rb
diff options
context:
space:
mode:
authorPaula McMaw <paula@puppet.com>2017-02-21 15:40:04 +0000
committerPaula McMaw <paula@puppet.com>2017-02-21 15:40:04 +0000
commit68fa8d32511e770498118b9c1ccc1dfd1e89c860 (patch)
tree05b04d0e7181b8527166f1a1c5ac884297861909 /spec/functions/count_spec.rb
parent2cc0d66c76895583f5b0c7c38b88d2bc6af8b4f9 (diff)
Adding unit test for i18n count function
Diffstat (limited to 'spec/functions/count_spec.rb')
-rwxr-xr-xspec/functions/count_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/functions/count_spec.rb b/spec/functions/count_spec.rb
index c8d1960..3854cb8 100755
--- a/spec/functions/count_spec.rb
+++ b/spec/functions/count_spec.rb
@@ -15,4 +15,9 @@ describe 'count' do
it { is_expected.to run.with_params(["one", nil, "two"]).and_return(2) }
it { is_expected.to run.with_params(["one", "", "two"]).and_return(2) }
it { is_expected.to run.with_params(["one", :undef, "two"]).and_return(2) }
+
+ it { is_expected.to run.with_params(["ổņ℮", "ŧщộ", "three"]).and_return(3) }
+ it { is_expected.to run.with_params(["ổņ℮", "ŧщộ", "ŧщộ"], "ŧщộ").and_return(2) }
+ it { is_expected.to run.with_params(["ổņ℮", nil, "ŧщộ"]).and_return(2) }
+ it { is_expected.to run.with_params(["ổņ℮", :undef, "ŧщộ"]).and_return(2) }
end