blkperl/puppet-network — Issue #9: network_scripts.rb specs requires a fully qualified path
Author: adrienthebo
Created: 2012-01-09 22:16:01+00:00
State: open

spec/unit/puppet/provider/network_config/network_scripts.rb:3

require '/etc/puppet/modules/puppet-network/lib/puppet/provider/network_config/network_scripts.rb'

The above path is fully qualified, so the specs cannot be run without running as root and updating /etc, which makes running tests significantly harder. Adding a spec helper that adds the module libdir to the load path and simply requiring the provider would make this more portable.