summaryrefslogtreecommitdiff
path: root/spec/unit/plugins/joyent_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/plugins/joyent_spec.rb')
-rw-r--r--spec/unit/plugins/joyent_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/plugins/joyent_spec.rb b/spec/unit/plugins/joyent_spec.rb
index 516cd90e..b62aae5f 100644
--- a/spec/unit/plugins/joyent_spec.rb
+++ b/spec/unit/plugins/joyent_spec.rb
@@ -74,8 +74,8 @@ describe Ohai::System, "plugin joyent" do
VERIFIED_INSTALLATION=trusted
EOS
- allow(::File).to receive(:read).with("/etc/product").and_return(etc_product)
- allow(::File).to receive(:read).with("/opt/local/etc/pkg_install.conf").and_return(pkg_install_conf)
+ allow(plugin).to receive(:file_read).with("/etc/product").and_return(etc_product)
+ allow(plugin).to receive(:file_read).with("/opt/local/etc/pkg_install.conf").and_return(pkg_install_conf)
plugin.run
end