mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
cookstyle fixes
Signed-off-by: mbaitelman <mendy@baitelman.com>
This commit is contained in:
parent
ad1bf219eb
commit
39c22f4189
2 changed files with 4 additions and 4 deletions
|
@ -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|
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue