summaryrefslogtreecommitdiff
path: root/spec/functional/knife/configure_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functional/knife/configure_spec.rb')
-rw-r--r--spec/functional/knife/configure_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/functional/knife/configure_spec.rb b/spec/functional/knife/configure_spec.rb
index 3bef18a0aa..4c02f15200 100644
--- a/spec/functional/knife/configure_spec.rb
+++ b/spec/functional/knife/configure_spec.rb
@@ -16,23 +16,23 @@
# limitations under the License.
#
-require 'spec_helper'
+require "spec_helper"
-require 'chef/knife/configure'
-require 'ohai'
+require "chef/knife/configure"
+require "ohai"
describe "knife configure" do
let (:ohai) do
o = Ohai::System.new
o.load_plugins
- o.require_plugin 'os'
- o.require_plugin 'hostname'
+ o.require_plugin "os"
+ o.require_plugin "hostname"
o
end
it "loads the fqdn from Ohai" do
knife_configure = Chef::Knife::Configure.new
- hostname_guess = ohai[:fqdn] || ohai[:machinename] || ohai[:hostname] || 'localhost'
+ hostname_guess = ohai[:fqdn] || ohai[:machinename] || ohai[:hostname] || "localhost"
expect(knife_configure.guess_servername).to eql(hostname_guess)
end
end