summaryrefslogtreecommitdiff
path: root/spec/unit/plugins/aix/hostname_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/plugins/aix/hostname_spec.rb')
-rw-r--r--spec/unit/plugins/aix/hostname_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/plugins/aix/hostname_spec.rb b/spec/unit/plugins/aix/hostname_spec.rb
index 2b3764e7..efa462d4 100644
--- a/spec/unit/plugins/aix/hostname_spec.rb
+++ b/spec/unit/plugins/aix/hostname_spec.rb
@@ -22,6 +22,7 @@ describe Ohai::System, "AIX hostname plugin" do
before do
@plugin = get_plugin("hostname")
allow(@plugin).to receive(:collect_os).and_return(:aix)
+ allow(@plugin).to receive(:resolve_fqdn).and_return("katie.bethell")
allow(@plugin).to receive(:from_cmd).with("hostname -s").and_return("aix_admin")
allow(@plugin).to receive(:from_cmd).with("hostname").and_return("aix_admin.ponyville.com")
@plugin.run