summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb17
-rw-r--r--spec/spec_helper_local.rb7
2 files changed, 11 insertions, 13 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index ccd305b..a7f5b4e 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,16 +1,7 @@
require 'puppetlabs_spec_helper/module_spec_helper'
-require 'support/filesystem_helpers'
-require 'support/fixture_helpers'
-# SimpleCov does not run on Ruby 1.8.7
-unless RUBY_VERSION.to_f < 1.9
- require 'simplecov'
- SimpleCov.start do
- add_filter '/spec/'
- end
-end
-
-RSpec.configure do |c|
- c.include FilesystemHelpers
- c.include FixtureHelpers
+# put local configuration and setup into spec_helper_local
+begin
+ require 'spec_helper_local'
+rescue LoadError
end
diff --git a/spec/spec_helper_local.rb b/spec/spec_helper_local.rb
new file mode 100644
index 0000000..c7d27b5
--- /dev/null
+++ b/spec/spec_helper_local.rb
@@ -0,0 +1,7 @@
+require 'support/filesystem_helpers'
+require 'support/fixture_helpers'
+
+RSpec.configure do |c|
+ c.include FilesystemHelpers
+ c.include FixtureHelpers
+end