summaryrefslogtreecommitdiffstats
path: root/spec/lib/autotest/puppet_rspec.rb
diff options
context:
space:
mode:
authorRick Bradley <rick@rickbradley.com>2007-12-05 11:32:52 -0600
committerRick Bradley <rick@rickbradley.com>2007-12-05 11:32:52 -0600
commite1abfac0d8230b0ea230b7420562250ff2e23c52 (patch)
treef9b0ab4403432517b7f92e3f1166f510fbf0406f /spec/lib/autotest/puppet_rspec.rb
parent8eecbe54c96cec0de492e7ae77211637b65057e8 (diff)
downloadpuppet-e1abfac0d8230b0ea230b7420562250ff2e23c52.tar.gz
puppet-e1abfac0d8230b0ea230b7420562250ff2e23c52.tar.xz
puppet-e1abfac0d8230b0ea230b7420562250ff2e23c52.zip
moving autotest directory to make it possible to run autotest again
Diffstat (limited to 'spec/lib/autotest/puppet_rspec.rb')
-rw-r--r--spec/lib/autotest/puppet_rspec.rb46
1 files changed, 0 insertions, 46 deletions
diff --git a/spec/lib/autotest/puppet_rspec.rb b/spec/lib/autotest/puppet_rspec.rb
deleted file mode 100644
index 8536f3912..000000000
--- a/spec/lib/autotest/puppet_rspec.rb
+++ /dev/null
@@ -1,46 +0,0 @@
-require 'autotest'
-require 'autotest/rspec'
-
-class Autotest::PuppetRspec < Autotest::Rspec
- def initialize # :nodoc:
- super
- @test_mappings = {
- # the libraries under lib/puppet
- %r%^lib/puppet/(.*)\.rb$% => proc { |filename, m|
- files_matching %r!spec/(unit|integration)/#{m[1]}.rb!
- },
-
- # the actual spec files themselves
- %r%^spec/(unit|integration)/.*\.rb$% => proc { |filename, _|
- filename
- },
-
- # force a complete re-run for all of these:
-
- # main puppet lib
- %r!^lib/puppet\.rb$! => proc { |filename, _|
- files_matching %r!spec/(unit|integration)/.*\.rb!
- },
-
- # the spec_helper
- %r!^spec/spec_helper\.rb$! => proc { |filename, _|
- files_matching %r!spec/(unit|integration)/.*\.rb!
- },
-
- # the puppet test libraries
- %r!^test/lib/puppettest/.*! => proc { |filename, _|
- files_matching %r!spec/(unit|integration)/.*\.rb!
- },
-
- # the puppet spec libraries
- %r!^spec/lib/spec.*! => proc { |filename, _|
- files_matching %r!spec/(unit|integration)/.*\.rb!
- },
-
- # the monkey patches for rspec
- %r!^spec/lib/monkey_patches/.*! => proc { |filename, _|
- files_matching %r!spec/(unit|integration)/.*\.rb!
- },
- }
- end
-end