summaryrefslogtreecommitdiff
path: root/spec/unit/runner_spec.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-01-24 19:57:57 -0800
committerTim Smith <tsmith@chef.io>2017-01-24 21:31:55 -0800
commit8bcca46f3b117f5085516569c3a0df81f725d752 (patch)
tree510cbf4ba6008239235bd793af79d30bed230755 /spec/unit/runner_spec.rb
parent3e27195210c8ee77114c4b6c39f56be1d91f42a4 (diff)
downloadohai-8bcca46f3b117f5085516569c3a0df81f725d752.tar.gz
Minor spec file cleanupminor_spec_cleanup
- Use require_relative in all the specs vs. expanding on the current file path. - Add missing license headers - Don't silently swallow ipaddr_extensions not being installed. Make it a development dep instead - Remove a rescue on ipaddress as we only do this in one place and it's a required gem - Make the Openstack plugin spec setup the same way as every other spec Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/runner_spec.rb')
-rw-r--r--spec/unit/runner_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/runner_spec.rb b/spec/unit/runner_spec.rb
index abbeecd3..a811c954 100644
--- a/spec/unit/runner_spec.rb
+++ b/spec/unit/runner_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License
#
-require File.expand_path(File.dirname(__FILE__) + "/../spec_helper.rb")
+require_relative "../spec_helper.rb"
describe Ohai::Runner, "run_plugin" do
let(:safe_run) { true }