diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-02 13:18:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-02 13:18:58 -0700 |
commit | 4ca23a0dd98c59e1cae29fd7ad6e485cbb12c2b3 (patch) | |
tree | c23401b04cc4184969ea7ab8d4ae5ad8760ee198 /spec/unit/knife/data_bag_create_spec.rb | |
parent | 28f9fa7713cd2788f259efc7ec5405365d07419c (diff) | |
parent | 865b2aac61aea10db31bae7dcedd6146c9526f74 (diff) | |
download | chef-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.rb | 4 |
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") |