summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeal Jagannatha <zealjagannatha@gmail.com>2017-11-19 00:10:31 -0800
committerZeal Jagannatha <zealjagannatha@gmail.com>2017-11-20 10:33:34 -0800
commit71163c9a3b8169c5b04107f097abf28c8e88834c (patch)
treee6ac9403b1875dea597220dbb4b08e95f128a3ca
parentef143fdc2097700d3e5efff195178e2cdf119cd8 (diff)
downloadohai-71163c9a3b8169c5b04107f097abf28c8e88834c.tar.gz
Fixed chefstyle issue
Signed-off-by: Zeal Jagannatha <zealjagannatha@gmail.com>
-rw-r--r--spec/unit/plugins/linux/virtualization_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/plugins/linux/virtualization_spec.rb b/spec/unit/plugins/linux/virtualization_spec.rb
index aea96b13..381c271d 100644
--- a/spec/unit/plugins/linux/virtualization_spec.rb
+++ b/spec/unit/plugins/linux/virtualization_spec.rb
@@ -634,7 +634,7 @@ CGROUP
allow(File).to receive(:exist?).with("/proc/1/environ").and_return(false)
one_environ = "container=systemd-nspawn_ttys=/dev/pts/0 /dev/pts/1 /dev/pts/2 /dev/pts/3".chomp
allow(File).to receive(:read).with("/proc/1/environ").and_return(one_environ)
- allow(File).to receive(:read).with("/proc/self/cgroup").and_return('')
+ allow(File).to receive(:read).with("/proc/self/cgroup").and_return("")
plugin.run
expect(plugin[:virtualization][:system]).to eq("nspawn")
expect(plugin[:virtualization][:role]).to eq("guest")