mirror of
https://github.com/inspec/inspec
synced 2024-11-11 15:37:09 +00:00
parent
d9ded1d38d
commit
a04ff021c6
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
require 'inspec/rule'
|
||||
require 'inspec/dsl'
|
||||
require 'rspec/core/dsl'
|
||||
require 'securerandom'
|
||||
|
||||
module Inspec
|
||||
class ProfileContext # rubocop:disable Metrics/ClassLength
|
||||
|
@ -110,7 +111,7 @@ module Inspec
|
|||
define_method :describe do |*args, &block|
|
||||
path = block.source_location[0]
|
||||
line = block.source_location[1]
|
||||
id = "#{File.basename(path)}:#{line}"
|
||||
id = "#{File.basename(path)}:#{line} #{SecureRandom.hex}"
|
||||
rule = rule_class.new(id, {}) do
|
||||
describe(*args, &block)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue