summaryrefslogtreecommitdiff
path: root/spec/integration
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/integration
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/integration')
-rw-r--r--spec/integration/knife/raw_spec.rb8
-rw-r--r--spec/integration/knife/redirection_spec.rb4
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/integration/knife/raw_spec.rb b/spec/integration/knife/raw_spec.rb
index 7e563d5d25..ba26def473 100644
--- a/spec/integration/knife/raw_spec.rb
+++ b/spec/integration/knife/raw_spec.rb
@@ -214,8 +214,8 @@ describe "knife raw", :workstation do
end
context "When a server returns raw json" do
- def start_tiny_server(server_opts = {})
- @server = TinyServer::Manager.new(server_opts)
+ def start_tiny_server(**server_opts)
+ @server = TinyServer::Manager.new(**server_opts)
@server.start
@api = TinyServer::API.instance
@api.clear
@@ -256,8 +256,8 @@ describe "knife raw", :workstation do
end
context "When a server returns text" do
- def start_tiny_server(server_opts = {})
- @server = TinyServer::Manager.new(server_opts)
+ def start_tiny_server(**server_opts)
+ @server = TinyServer::Manager.new(**server_opts)
@server.start
@api = TinyServer::API.instance
@api.clear
diff --git a/spec/integration/knife/redirection_spec.rb b/spec/integration/knife/redirection_spec.rb
index 2574ac3bf0..34d5fe6efc 100644
--- a/spec/integration/knife/redirection_spec.rb
+++ b/spec/integration/knife/redirection_spec.rb
@@ -25,8 +25,8 @@ describe "redirection", :workstation do
include IntegrationSupport
include KnifeSupport
- def start_tiny_server(real_chef_server_url, server_opts = {})
- @server = TinyServer::Manager.new(server_opts)
+ def start_tiny_server(real_chef_server_url, **server_opts)
+ @server = TinyServer::Manager.new(**server_opts)
@server.start
@api = TinyServer::API.instance
@api.clear