diff --git a/lib/plugins/inspec-init/templates/resources/basic/test/unit/inspec-resource-test-template.erb b/lib/plugins/inspec-init/templates/resources/basic/test/unit/inspec-resource-test-template.erb index 9ae1cd269..2f13b338a 100644 --- a/lib/plugins/inspec-init/templates/resources/basic/test/unit/inspec-resource-test-template.erb +++ b/lib/plugins/inspec-init/templates/resources/basic/test/unit/inspec-resource-test-template.erb @@ -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 diff --git a/lib/plugins/inspec-init/templates/resources/plural/libraries/inspec-resource-template.erb b/lib/plugins/inspec-init/templates/resources/plural/libraries/inspec-resource-template.erb index 74985a3b2..8bc5db09b 100644 --- a/lib/plugins/inspec-init/templates/resources/plural/libraries/inspec-resource-template.erb +++ b/lib/plugins/inspec-init/templates/resources/plural/libraries/inspec-resource-template.erb @@ -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. diff --git a/lib/plugins/inspec-init/templates/resources/plural/test/unit/inspec-resource-test-template.erb b/lib/plugins/inspec-init/templates/resources/plural/test/unit/inspec-resource-test-template.erb index 5203ab976..a81cc522e 100644 --- a/lib/plugins/inspec-init/templates/resources/plural/test/unit/inspec-resource-test-template.erb +++ b/lib/plugins/inspec-init/templates/resources/plural/test/unit/inspec-resource-test-template.erb @@ -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