summaryrefslogtreecommitdiff
path: root/spec/spec_helper_local.rb
diff options
context:
space:
mode:
authorDavid Schmitt <david.schmitt@puppet.com>2016-10-25 15:28:40 +0100
committerDavid Schmitt <david.schmitt@puppet.com>2016-10-25 15:28:40 +0100
commitea929418c6c539fe6aa6506e520c5fe8fe68559f (patch)
treeb1492eaf80e23f7e4d8f12894baf6e1b7b171996 /spec/spec_helper_local.rb
parent1e9128ffc890463880041690e508d7ac1d320ea5 (diff)
(MODULES-3980) Fix ipv4 regex validator
This also updates all ipv4 tests to use the same test data for better comparability. Closes #676, #679 Fix-Originally-By: Nate Potter <nathaniel.potter@intel.com>
Diffstat (limited to 'spec/spec_helper_local.rb')
-rw-r--r--spec/spec_helper_local.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/spec_helper_local.rb b/spec/spec_helper_local.rb
index 023a862..616490c 100644
--- a/spec/spec_helper_local.rb
+++ b/spec/spec_helper_local.rb
@@ -1,3 +1,5 @@
+# automatically load any shared examples or contexts
+Dir["./spec/support/**/*.rb"].sort.each { |f| require f }
# hack to enable all the expect syntax (like allow_any_instance_of) in rspec-puppet examples
RSpec::Mocks::Syntax.enable_expect(RSpec::Puppet::ManifestMatchers)