diff options
author | Tim Smith <tsmith84@gmail.com> | 2019-08-16 13:15:22 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2019-08-16 13:15:22 -0700 |
commit | 54b3cc831750805f19f838d60dea25e23dfa2e8c (patch) | |
tree | 81f539fca05ca2d0ed0761011913cd852b46d450 /spec/unit/plugins/scsi_spec.rb | |
parent | 038fd847c6d75dfaf6e60b67de185732aa245cc3 (diff) | |
download | ohai-54b3cc831750805f19f838d60dea25e23dfa2e8c.tar.gz |
rspec updates from rubocop-rspecrspec
Autocorrects for a few different things that rubocop-rspec identified.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/plugins/scsi_spec.rb')
-rw-r--r-- | spec/unit/plugins/scsi_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/plugins/scsi_spec.rb b/spec/unit/plugins/scsi_spec.rb index a746fd74..ba258ec1 100644 --- a/spec/unit/plugins/scsi_spec.rb +++ b/spec/unit/plugins/scsi_spec.rb @@ -20,7 +20,8 @@ require "spec_helper" describe Ohai::System, "lsscsi plugin" do let(:plugin) { get_plugin("scsi") } - before(:each) do + + before do allow(plugin).to receive(:collect_os).and_return(:linux) @stdout = <<~LSSCSI [5:0:0:0] disk ATA Hitachi HUA72205 A3EA /dev/sda |