Skip to content

Commit

Permalink
RUBOCOP
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick committed Nov 13, 2019
1 parent f724699 commit 88d681a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions provider/inspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,9 @@ def generate_resource_tests(data)

generate_inspec_test(data.clone, name, target_folder, name)

unless data.object.singular_only
# Build test for plural resource
generate_inspec_test(data.clone, name.pluralize, target_folder, name)
end
# Build test for plural resource
generate_inspec_test(data.clone, name.pluralize, target_folder, name)\
unless data.object.singular_only
end

def generate_inspec_test(data, name, target_folder, attribute_file_name)
Expand Down

0 comments on commit 88d681a

Please sign in to comment.