Use File.expand_path with require.
authorDaniele Sluijters <github@daenney.net>
Sun, 16 Mar 2014 11:44:05 +0000 (12:44 +0100)
committerDaniele Sluijters <github@daenney.net>
Sun, 16 Mar 2014 11:51:33 +0000 (12:51 +0100)
commitcc1f9c8bb900ed3da48e794a2185c9e17b4df9a4
tree7648935c5f4617c934374c4202699621854da8e3
parent6691c2faded01d273672b4db36f5a8651d3a934f
Use File.expand_path with require.

For some reason, even though our own tests pass with `require
puppet_x/apt_key/patch_openuri` every other module that depends on
puppetlabs-apt is now breaking in tests claiming it can't load that
module.

Somewhere along the way something is probably messing with LOADPATH
causing this to trip up. This should fix the issues for everyone.

This commit affects:
 * puppetlabs/puppetlabs-apt#229
 * puppetlabs/puppetlabs-postgresql#391
lib/puppet/provider/apt_key/apt_key.rb