diff options
author | Paula McMaw <paula@puppet.com> | 2017-02-21 16:01:06 +0000 |
---|---|---|
committer | Paula McMaw <paula@puppet.com> | 2017-02-21 16:01:06 +0000 |
commit | 846ddcd09e1a5bf27acb6cb5fd1e0854bb1538f6 (patch) | |
tree | c7a20d711b8b19054b2a9af25473b6096fea83e1 /spec | |
parent | 83d68fef749869dc917539f7f05592dc2f2ce642 (diff) |
Adding unit test for i18n delete_at function
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/functions/delete_at_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/functions/delete_at_spec.rb b/spec/functions/delete_at_spec.rb index 0e19472..0471039 100755 --- a/spec/functions/delete_at_spec.rb +++ b/spec/functions/delete_at_spec.rb @@ -18,6 +18,8 @@ describe 'delete_at' do it { is_expected.to run.with_params([0, 1, 2], 1).and_return([0, 2]) } it { is_expected.to run.with_params([0, 1, 2], -1).and_return([0, 1]) } it { is_expected.to run.with_params([0, 1, 2], -4).and_return([0, 1, 2]) } + it { is_expected.to run.with_params(["ƒờở", "βāř", "ьầż"], 1).and_return(["ƒờở", "ьầż"]) } + it "should leave the original array intact" do argument = [1, 2, 3] |