Skip to content

Commit

Permalink
do not load controls from test directory
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Nov 25, 2016
1 parent a990d20 commit bd8ae06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/source_readers/inspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def initialize(target, metadata_source)

def load_tests
tests = @target.files.find_all do |path|
path.start_with?('controls', 'test') && path.end_with?('.rb')
path.start_with?('controls') && path.end_with?('.rb')
end
Hash[tests.map { |x| [x, @target.read(x)] }]
end
Expand Down

0 comments on commit bd8ae06

Please sign in to comment.