summaryrefslogtreecommitdiff
path: root/spec/functions
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functions')
-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