summaryrefslogtreecommitdiff
path: root/spec/support/shared/unit/mock_shellout.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-04-28 16:28:52 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-04-28 16:28:52 -0700
commit450ee3767c58c297e884e24cf5796a6a16818d6e (patch)
treefd34fdd59289cc5944f53da83d4cfefc8b3ee586 /spec/support/shared/unit/mock_shellout.rb
parent52328f2e7d6d73690c023843f887604dbcba1d14 (diff)
downloadchef-450ee3767c58c297e884e24cf5796a6a16818d6e.tar.gz
Fix more ruby 2.7 warning logspamlcg/more-ruby-27-logging-suppression
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/support/shared/unit/mock_shellout.rb')
-rw-r--r--spec/support/shared/unit/mock_shellout.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared/unit/mock_shellout.rb b/spec/support/shared/unit/mock_shellout.rb
index dac51be798..0ea8f64c4d 100644
--- a/spec/support/shared/unit/mock_shellout.rb
+++ b/spec/support/shared/unit/mock_shellout.rb
@@ -23,7 +23,7 @@
class MockShellout
module RSpec
def mock_shellout_command(command, **result)
- allow(::Mixlib::ShellOut).to receive(:new).with(command, anything).and_return MockShellout.new(result)
+ allow(::Mixlib::ShellOut).to receive(:new).with(command, anything).and_return MockShellout.new(**result)
end
end