summaryrefslogtreecommitdiff
path: root/spec/functions/ensure_resource_spec.rb
diff options
context:
space:
mode:
authorDan Bode <dan@puppetlabs.com>2012-08-13 18:53:47 -0700
committerJeff McCune <jeff@puppetlabs.com>2012-10-25 10:54:33 -0700
commit444393bf6b1e21da4e31f9037d17ea417b9b473b (patch)
treece291f0e86475f9ec60f07f85ef5ab130d210607 /spec/functions/ensure_resource_spec.rb
parent97d327ae44820083ed8ad127930600422faf5031 (diff)
re-formatting
This commit refactors to ensure 80 character lines.
Diffstat (limited to 'spec/functions/ensure_resource_spec.rb')
-rw-r--r--spec/functions/ensure_resource_spec.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/functions/ensure_resource_spec.rb b/spec/functions/ensure_resource_spec.rb
index e03efda..611666e 100644
--- a/spec/functions/ensure_resource_spec.rb
+++ b/spec/functions/ensure_resource_spec.rb
@@ -19,7 +19,7 @@ describe 'ensure_resource' 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
@@ -28,9 +28,13 @@ describe 'ensure_resource' do
should run.with_params('User', 'dan', {})
should run.with_params('User', 'dan', '')
should run.with_params('User', 'dan', {'ensure' => 'present'})
- should run.with_params('User', 'dan', {'ensure' => 'present', 'managehome' => false})
+ should run.with_params('User', 'dan',
+ {'ensure' => 'present', 'managehome' => false}
+ )
# test that this fails
- should run.with_params('User', 'dan', {'ensure' => 'absent', 'managehome' => false}).and_raise_error(Puppet::Error)
+ should run.with_params('User', 'dan',
+ {'ensure' => 'absent', 'managehome' => false}
+ ).and_raise_error(Puppet::Error)
end
end
end