summaryrefslogtreecommitdiff
path: root/spec/unit/plugins/go_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/plugins/go_spec.rb')
-rw-r--r--spec/unit/plugins/go_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/plugins/go_spec.rb b/spec/unit/plugins/go_spec.rb
index 1aeee50e..ce3a0e65 100644
--- a/spec/unit/plugins/go_spec.rb
+++ b/spec/unit/plugins/go_spec.rb
@@ -18,13 +18,13 @@ require "spec_helper"
describe Ohai::System, "plugin go" do
let(:plugin) { get_plugin("go") }
- before(:each) do
+ before do
plugin[:languages] = Mash.new
stdout = "go version go1.6.1 darwin/amd64\n"
allow(plugin).to receive(:shell_out).with("go version").and_return(mock_shell_out(0, stdout, ""))
end
- it "it shells out to get the go version" do
+ it "shells out to get the go version" do
expect(plugin).to receive(:shell_out).with("go version")
plugin.run
end