diff options
Diffstat (limited to 'spec/unit/plugins/openbsd/platform_spec.rb')
-rw-r--r-- | spec/unit/plugins/openbsd/platform_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/plugins/openbsd/platform_spec.rb b/spec/unit/plugins/openbsd/platform_spec.rb index d4f5e0ab..9a626f1f 100644 --- a/spec/unit/plugins/openbsd/platform_spec.rb +++ b/spec/unit/plugins/openbsd/platform_spec.rb @@ -19,14 +19,14 @@ require "spec_helper" describe Ohai::System, "OpenBSD plugin platform" do - before(:each) do + before do @plugin = get_plugin("openbsd/platform") allow(@plugin).to receive(:shell_out).with("uname -s").and_return(mock_shell_out(0, "OpenBSD\n", "")) allow(@plugin).to receive(:shell_out).with("uname -r").and_return(mock_shell_out(0, "4.5\n", "")) allow(@plugin).to receive(:collect_os).and_return(:openbsd) end - it "should set platform_version to lsb[:release]" do + it "sets platform_version to lsb[:release]" do @plugin.run expect(@plugin[:platform_version]).to eq("4.5") end |