summaryrefslogtreecommitdiff
path: root/spec/functions/suffix_spec.rb
diff options
context:
space:
mode:
authorReinhard Vicinus <r.vicinus@metaways.de>2016-03-22 15:06:31 +0100
committerReinhard Vicinus <r.vicinus@metaways.de>2016-03-22 16:24:09 +0100
commit85ff2a28a83984c827985181d58c55ca8c524ed6 (patch)
treec0ba919936c73e94e66f4952caeff47f9f746294 /spec/functions/suffix_spec.rb
parentb6383d259cf4917edd832ba31cf4dae2b4201235 (diff)
improve suffix function to support the same feature set as prefix
Diffstat (limited to 'spec/functions/suffix_spec.rb')
-rwxr-xr-xspec/functions/suffix_spec.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/functions/suffix_spec.rb b/spec/functions/suffix_spec.rb
index b48a4eb..efba4ab 100755
--- a/spec/functions/suffix_spec.rb
+++ b/spec/functions/suffix_spec.rb
@@ -16,29 +16,23 @@ describe 'suffix' do
it { is_expected.to run.with_params(['one'], 'post').and_return(['onepost']) }
it { is_expected.to run.with_params(['one', 'two', 'three'], 'post').and_return(['onepost', 'twopost', 'threepost']) }
it {
- pending("implementation of Hash functionality matching prefix")
is_expected.to run.with_params({}).and_return({})
}
it {
- pending("implementation of Hash functionality matching prefix")
is_expected.to run.with_params({ 'key1' => 'value1', 2 => 3}).and_return({ 'key1' => 'value1', '2' => 3 })
}
it {
- pending("implementation of Hash functionality matching prefix")
is_expected.to run.with_params({}, '').and_return({})
}
it {
- pending("implementation of Hash functionality matching prefix")
is_expected.to run.with_params({ 'key' => 'value' }, '').and_return({ 'key' => 'value' })
}
it {
- pending("implementation of Hash functionality matching prefix")
is_expected.to run.with_params({ 'key' => 'value' }, 'post').and_return({ 'keypost' => 'value' })
}
it {
- pending("implementation of Hash functionality matching prefix")
is_expected.to run \
- .with_params({ 'key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3' }, 'pre') \
+ .with_params({ 'key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3' }, 'post') \
.and_return({ 'key1post' => 'value1', 'key2post' => 'value2', 'key3post' => 'value3' })
}
end