[Pkg-puppet-devel] [facter] 39/61: maint: adding lib to spec path in spec helper
Stig Sandbeck Mathisen
ssm at debian.org
Mon Nov 4 15:02:01 UTC 2013
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository facter.
commit fb3bd3b943ce32648c66cb94b1049d67d2d5bd0b
Author: Josh Cooper <josh at puppetlabs.com>
Date: Mon Jul 29 14:31:11 2013 -0700
maint: adding lib to spec path in spec helper
Add the 'spec/lib' directory to the load path so we can load spec
specific code.
---
spec/spec_helper.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index ead2438..be48104 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -8,6 +8,7 @@ require 'pathname'
# load shared_context within this project's spec directory
dir = File.expand_path(File.dirname(__FILE__))
+$LOAD_PATH.unshift File.join(dir, 'lib')
Pathname.glob("#{dir}/shared_contexts/*.rb") do |file|
require file.relative_path_from(Pathname.new(dir))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git
More information about the Pkg-puppet-devel
mailing list