Fixed lint

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
Vasu1105 2021-09-28 12:13:18 +05:30
parent bfd59c1b14
commit 04c1af6a24
2 changed files with 1 additions and 2 deletions

View file

@ -6,7 +6,6 @@ module Inspec::Resources
supports platform: "unix"
supports platform: "windows"
attr_reader :result
def initialize(content)
@content = content
super({ content: @content })

View file

@ -10,7 +10,7 @@ describe "Inspec::Resources::OpaApi" do
end
it "verify opa api query result parsing when output is empty" do
resource = load_resource("opa_api", url: "localhost:8181/v1/data/example/violation", data: "v1-data-input1.json")
resource = load_resource("opa_api", url: "localhost:8181/v1/data/example/violation", data: "v1-data-input1.json")
_(resource.result).must_be_nil
_(resource.params["result"]).must_equal([])
end