summaryrefslogtreecommitdiff
path: root/spec/unit/knife/supermarket_install_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/knife/supermarket_install_spec.rb')
-rw-r--r--spec/unit/knife/supermarket_install_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/knife/supermarket_install_spec.rb b/spec/unit/knife/supermarket_install_spec.rb
index 68c8af1028..d891de9268 100644
--- a/spec/unit/knife/supermarket_install_spec.rb
+++ b/spec/unit/knife/supermarket_install_spec.rb
@@ -81,7 +81,7 @@ describe Chef::Knife::SupermarketInstall do
end
it "raises an error if the second argument is not a version" do
- knife.name_args = ["getting-started", "1pass"]
+ knife.name_args = %w{getting-started 1pass}
expect(knife.ui).to receive(:error).with("Installing multiple cookbooks at once is not supported.")
expect { knife.run }.to raise_error(SystemExit)
end
@@ -93,7 +93,7 @@ describe Chef::Knife::SupermarketInstall do
end
it "raises an error if the second argument is a one-digit version" do
- knife.name_args = ["getting-started", "1"]
+ knife.name_args = %w{getting-started 1}
expect(knife.ui).to receive(:error).with("Installing multiple cookbooks at once is not supported.")
expect { knife.run }.to raise_error(SystemExit)
end