mirror of
https://github.com/inspec/inspec
synced 2024-11-15 01:17:08 +00:00
Linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
bbdbc5c6b7
commit
d78acc03ba
3 changed files with 3 additions and 4 deletions
|
@ -4,7 +4,7 @@ require "inspec/globals"
|
|||
require "#{Inspec.src_root}/test/helper"
|
||||
|
||||
# Load (require) the resource library file
|
||||
require_relative "<%= layout == "core" ? "../../../lib/inspec/resources/" : "../../libraries/" %><%= resource_name %>.rb"
|
||||
require_relative "<%= layout == "core" ? "../../../lib/inspec/resources/" : "../../libraries/" %><%= resource_name %>"
|
||||
|
||||
describe Inspec::Resources::<%= class_name %> do
|
||||
it "works correctly with the constructor on the platform" do
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
# https://github.com/inspec/inspec/blob/main/dev-docs/filtertable-usage.md
|
||||
# Consider that page required reading for authoring plural resources.
|
||||
|
||||
|
||||
# Uncomment the below lines to add gems and files required by the resource
|
||||
# require "inspec/utils/filter"
|
||||
# require_relative ""
|
||||
|
@ -52,7 +51,7 @@ module Inspec::Resources
|
|||
# where(), count(), and a property for every column.
|
||||
table = FilterTable.create
|
||||
table.register_column(:names, field: :name, style: :simple)
|
||||
.register_column(:shoe_sizes, field: :shoe_size)
|
||||
.register_column(:shoe_sizes, field: :shoe_size)
|
||||
.install_filter_methods_on_resource(self, :fetch_data)
|
||||
|
||||
# Plural resources do not generally define a resource_id.
|
||||
|
|
|
@ -4,7 +4,7 @@ require "inspec/globals"
|
|||
require "#{Inspec.src_root}/test/helper"
|
||||
|
||||
# Load (require) the resource library file
|
||||
require_relative "<%= layout == "core" ? "../../../lib/inspec/resources/" : "../../libraries/" %><%= resource_name %>.rb"
|
||||
require_relative "<%= layout == "core" ? "../../../lib/inspec/resources/" : "../../libraries/" %><%= resource_name %>"
|
||||
|
||||
describe Inspec::Resources::<%= class_name %> do
|
||||
it "works correctly with the constructor on the platform" do
|
||||
|
|
Loading…
Reference in a new issue