cookstyle fixes

Signed-off-by: mbaitelman <mendy@baitelman.com>
This commit is contained in:
mbaitelman 2021-03-08 07:02:11 -08:00
parent ad1bf219eb
commit 39c22f4189
2 changed files with 4 additions and 4 deletions

View file

@ -201,8 +201,8 @@ module Inspec::Resources
if inspec.os.windows?
response = JSON.parse(response)
@status = response['StatusCode']
@body = response['RawContent']
@status = response["StatusCode"]
@body = response["RawContent"]
@response_headers = {}
response["Headers"].each do |name, value|

View file

@ -244,7 +244,7 @@ describe "Inspec::Resources::Http" do
end
end
describe "Windows" do
describe "Windows" do
let(:backend) { MockLoader.new(:windows).backend }
let(:http_method) { "GET" }
let(:url) { "https://www.example.com" }
@ -257,7 +257,7 @@ describe "Inspec::Resources::Http" do
.stubs(:exist?)
.returns(true)
_(worker.status).must_equal 200
_(worker.response_headers['Content-Type']).must_equal "text/html; charset=UTF-8"
_(worker.response_headers["Content-Type"]).must_equal "text/html; charset=UTF-8"
end
end
end