summaryrefslogtreecommitdiffstats
path: root/spec/monkey_patches
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-06-13 11:39:04 -0500
committerLuke Kanies <luke@madstop.com>2008-06-13 11:39:04 -0500
commit087480bf6368edffcc0e8c6ea22d018e186bcab8 (patch)
tree3eff31581ce6fda21134e7b861fa8c528dc167fe /spec/monkey_patches
parent3980323e667443784247234d8b1afa648196a121 (diff)
downloadpuppet-087480bf6368edffcc0e8c6ea22d018e186bcab8.tar.gz
puppet-087480bf6368edffcc0e8c6ea22d018e186bcab8.tar.xz
puppet-087480bf6368edffcc0e8c6ea22d018e186bcab8.zip
Replacing all two-space indents with four-space
Diffstat (limited to 'spec/monkey_patches')
-rw-r--r--spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb46
1 files changed, 23 insertions, 23 deletions
diff --git a/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb b/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb
index e2f3d4728..0b4a5abdb 100644
--- a/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb
+++ b/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb
@@ -1,7 +1,7 @@
dir = File.expand_path(File.dirname(__FILE__))
[ "#{dir}/../../lib", "#{dir}/../../test/lib"].each do |dir|
- fulldir = File.expand_path(dir)
- $LOAD_PATH.unshift(fulldir) unless $LOAD_PATH.include?(fulldir)
+ fulldir = File.expand_path(dir)
+ $LOAD_PATH.unshift(fulldir) unless $LOAD_PATH.include?(fulldir)
end
require 'spec'
@@ -9,35 +9,35 @@ require 'puppettest'
require 'puppettest/runnable_test'
module Spec
- module Runner
- class ExampleGroupRunner
- def run
- prepare
- success = true
- example_groups.each do |example_group|
- next unless example_group.runnable?
- success = success & example_group.run
+ module Runner
+ class ExampleGroupRunner
+ def run
+ prepare
+ success = true
+ example_groups.each do |example_group|
+ next unless example_group.runnable?
+ success = success & example_group.run
+ end
+ return success
+ ensure
+ finish
+ end
end
- return success
- ensure
- finish
- end
end
- end
end
module Spec
- module Example
- class ExampleGroup
- extend PuppetTest::RunnableTest
+ module Example
+ class ExampleGroup
+ extend PuppetTest::RunnableTest
+ end
end
- end
end
module Test
- module Unit
- class TestCase
- extend PuppetTest::RunnableTest
+ module Unit
+ class TestCase
+ extend PuppetTest::RunnableTest
+ end
end
- end
end