summaryrefslogtreecommitdiff
path: root/spec/unit/formatters/error_inspectors/api_error_formatting_spec.rb
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-01-14 14:08:03 +0000
committerThom May <thom@chef.io>2016-01-14 14:08:03 +0000
commit51cfbdc4d16739caac4d946fadbe678444aafe34 (patch)
tree56dfd8f1cd9fd933de27268b32402e955a43ac2b /spec/unit/formatters/error_inspectors/api_error_formatting_spec.rb
parent05064423057d4cf46f4713b81b08829cf6d20af6 (diff)
downloadchef-51cfbdc4d16739caac4d946fadbe678444aafe34.tar.gz
Use double quotes by default
This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
Diffstat (limited to 'spec/unit/formatters/error_inspectors/api_error_formatting_spec.rb')
-rw-r--r--spec/unit/formatters/error_inspectors/api_error_formatting_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/formatters/error_inspectors/api_error_formatting_spec.rb b/spec/unit/formatters/error_inspectors/api_error_formatting_spec.rb
index 6f90ea0b27..b417c76f8a 100644
--- a/spec/unit/formatters/error_inspectors/api_error_formatting_spec.rb
+++ b/spec/unit/formatters/error_inspectors/api_error_formatting_spec.rb
@@ -16,8 +16,8 @@
# limitations under the License.
#
-require 'spec_helper'
-require 'chef/formatters/error_inspectors/api_error_formatting'
+require "spec_helper"
+require "chef/formatters/error_inspectors/api_error_formatting"
describe Chef::Formatters::APIErrorFormatting do
let(:class_instance) { (Class.new { include Chef::Formatters::APIErrorFormatting }).new }
@@ -43,7 +43,7 @@ describe Chef::Formatters::APIErrorFormatting do
before do
# mock out the header
- allow(response).to receive(:[]).with('x-ops-server-api-version').and_return(Chef::JSONCompat.to_json(return_hash))
+ allow(response).to receive(:[]).with("x-ops-server-api-version").and_return(Chef::JSONCompat.to_json(return_hash))
end
it "prints an error about client and server API version incompatibility with a min API version" do
@@ -65,7 +65,7 @@ describe Chef::Formatters::APIErrorFormatting do
context "when response.body['error'] != 'invalid-x-ops-server-api-version'" do
before do
- allow(response).to receive(:[]).with('x-ops-server-api-version').and_return(nil)
+ allow(response).to receive(:[]).with("x-ops-server-api-version").and_return(nil)
end
it "forwards the error_description to describe_http_error" do