diff options
author | Daniel Paul Searles <daniel@flowboard.com> | 2014-10-24 21:35:51 -0700 |
---|---|---|
committer | Daniel Paul Searles <daniel@flowboard.com> | 2014-10-24 21:35:51 -0700 |
commit | b717c0aaf1b308eac2a47854fefd4881489f27c7 (patch) | |
tree | 468cdbf03f691077aff3732df78d18325bc6a1fb | |
parent | 249dc301c052fa71119ba66de82f48fe9d0a1032 (diff) | |
download | ohai-b717c0aaf1b308eac2a47854fefd4881489f27c7.tar.gz |
This adds a Resolv stub to the top scope for all the tests.
-rw-r--r-- | spec/unit/plugins/rackspace_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/plugins/rackspace_spec.rb b/spec/unit/plugins/rackspace_spec.rb index b2e3f064..4e60d111 100644 --- a/spec/unit/plugins/rackspace_spec.rb +++ b/spec/unit/plugins/rackspace_spec.rb @@ -19,6 +19,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') describe Ohai::System, "plugin rackspace" do before(:each) do + Resolv.stub(:getname).and_return("1.2.3.4") @plugin = get_plugin("rackspace") @plugin[:hostname] = "katie" @plugin[:network] = {:interfaces => {:eth0 => {"addresses"=> { |