summaryrefslogtreecommitdiff
path: root/spec/unit/plugins/virtualbox_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/plugins/virtualbox_spec.rb')
-rw-r--r--spec/unit/plugins/virtualbox_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/unit/plugins/virtualbox_spec.rb b/spec/unit/plugins/virtualbox_spec.rb
index 49e2268f..cb2d56b1 100644
--- a/spec/unit/plugins/virtualbox_spec.rb
+++ b/spec/unit/plugins/virtualbox_spec.rb
@@ -49,7 +49,7 @@ EOF
describe Ohai::System, "plugin virtualbox" do
context "when VBoxControl shellout fails" do
- it "should not set the virtualbox attribute" do
+ it "does not set the virtualbox attribute" do
plugin = get_plugin("virtualbox")
allow(plugin).to receive(:shell_out).with("VBoxControl guestproperty enumerate").and_return(mock_shell_out(1, "", ""))
plugin.run
@@ -60,28 +60,28 @@ describe Ohai::System, "plugin virtualbox" do
context "when VBoxControl shellout succeeds" do
let(:plugin) { get_plugin("virtualbox") }
- before(:each) do
+ before do
allow(plugin).to receive(:shell_out).with("VBoxControl guestproperty enumerate").and_return(mock_shell_out(0, vbox_output, ""))
plugin.run
end
- it "should set the host version" do
+ it "sets the host version" do
expect(plugin[:virtualbox][:host][:version]).to eql("5.0.10")
end
- it "should set the host revision" do
+ it "sets the host revision" do
expect(plugin[:virtualbox][:host][:revision]).to eql("104061")
end
- it "should set the host language" do
+ it "sets the host language" do
expect(plugin[:virtualbox][:host][:language]).to eql("en_US")
end
- it "should set the guest additions version" do
+ it "sets the guest additions version" do
expect(plugin[:virtualbox][:guest][:guest_additions_version]).to eql("5.0.2")
end
- it "should set the guest additions revision" do
+ it "sets the guest additions revision" do
expect(plugin[:virtualbox][:guest][:guest_additions_revision]).to eql("102096")
end
end