summaryrefslogtreecommitdiff
path: root/spec/functions/defined_with_params_spec.rb
diff options
context:
space:
mode:
authorDan Bode <dan@puppetlabs.com>2012-08-13 18:53:47 -0700
committerDan Bode <dan@puppetlabs.com>2012-08-13 18:53:47 -0700
commit5ffd33e8f1e50b717c9a4dae56230221f8ac97e6 (patch)
tree5bc9979558e1670ebe1c1543b6184def6033f11e /spec/functions/defined_with_params_spec.rb
parent222a65dfe23e15561369474b8db939aebf07bca4 (diff)
re-formatting
This commit refactors to ensure 80 character lines.
Diffstat (limited to 'spec/functions/defined_with_params_spec.rb')
-rw-r--r--spec/functions/defined_with_params_spec.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/spec/functions/defined_with_params_spec.rb b/spec/functions/defined_with_params_spec.rb
index f995b67..28dbab3 100644
--- a/spec/functions/defined_with_params_spec.rb
+++ b/spec/functions/defined_with_params_spec.rb
@@ -17,16 +17,21 @@ describe 'defined_with_params' do
end
end
- describe 'when comparted against a resource with attributes' do
+ describe 'when compared against a resource with attributes' do
let :pre_condition do
'user { "dan": ensure => present, shell => "/bin/csh", managehome => false}'
end
it do
should run.with_params('User[dan]', {}).and_return(true)
- should run.with_params('User[dan]', {'ensure' => 'present'}).and_return(true)
- should run.with_params('User[dan]', {'ensure' => 'present', 'managehome' => false}).and_return(true)
- should run.with_params('User[dan]', {'ensure' => 'absent', 'managehome' => false}).and_return(false)
should run.with_params('User[dan]', '').and_return(true)
+ should run.with_params('User[dan]', {'ensure' => 'present'}
+ ).and_return(true)
+ should run.with_params('User[dan]',
+ {'ensure' => 'present', 'managehome' => false}
+ ).and_return(true)
+ should run.with_params('User[dan]',
+ {'ensure' => 'absent', 'managehome' => false}
+ ).and_return(false)
end
end
end