mirror of
https://github.com/inspec/inspec
synced 2024-11-22 12:43:07 +00:00
Fix to capture all the tests (it/its) within a control (#6912)
Signed-off-by: Nik08 <nikita.mathur@progress.com>
This commit is contained in:
parent
7ac8ccf7c1
commit
7ac0f3d9d9
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ module Inspec
|
|||
get_check_example(m, a, b)
|
||||
end.compact
|
||||
|
||||
examples.map { |example| total_checks += example.examples.count }
|
||||
examples.map { |example| total_checks += example.descendant_filtered_examples.count }
|
||||
|
||||
unless control_describe_checks.empty?
|
||||
# controls with empty tests are avoided
|
||||
|
|
Loading…
Reference in a new issue