summaryrefslogtreecommitdiff
path: root/spec/unit/knife/data_bag_create_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-07-02 13:18:58 -0700
committerGitHub <noreply@github.com>2018-07-02 13:18:58 -0700
commit4ca23a0dd98c59e1cae29fd7ad6e485cbb12c2b3 (patch)
treec23401b04cc4184969ea7ab8d4ae5ad8760ee198 /spec/unit/knife/data_bag_create_spec.rb
parent28f9fa7713cd2788f259efc7ec5405365d07419c (diff)
parent865b2aac61aea10db31bae7dcedd6146c9526f74 (diff)
downloadchef-4ca23a0dd98c59e1cae29fd7ad6e485cbb12c2b3.tar.gz
Merge pull request #7414 from chef/lcg/chefstyle2
Chefstyle fixes
Diffstat (limited to 'spec/unit/knife/data_bag_create_spec.rb')
-rw-r--r--spec/unit/knife/data_bag_create_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/knife/data_bag_create_spec.rb b/spec/unit/knife/data_bag_create_spec.rb
index 169c6e1845..6624fb70ab 100644
--- a/spec/unit/knife/data_bag_create_spec.rb
+++ b/spec/unit/knife/data_bag_create_spec.rb
@@ -60,7 +60,7 @@ describe Chef::Knife::DataBagCreate do
context "when data_bag doesn't exist" do
before do
# Data bag doesn't exist by default so we mock the GET request to return 404
- exception = double("404 error", :code => "404")
+ exception = double("404 error", code: "404")
allow(rest).to receive(:get)
.with("data/#{bag_name}")
.and_raise(Net::HTTPServerException.new("404", exception))
@@ -82,7 +82,7 @@ describe Chef::Knife::DataBagCreate do
context "when part of the name is a reserved name" do
before do
- exception = double("404 error", :code => "404")
+ exception = double("404 error", code: "404")
%w{node role client environment}.each do |name|
allow(rest).to receive(:get)
.with("data/sudoing_#{name}_admins")