Method: Inspec::DescribeBase#one
- Defined in:
- lib/inspec/describe.rb
#one(&block) ⇒ nil
Evaluate the given block and collect all checks. These will be registered with the callback function under the ‘describe.one’ name.
17 18 19 20 21 |
# File 'lib/inspec/describe.rb', line 17 def one(&block) return unless block_given? instance_eval(&block) @action.call('describe.one', @checks, nil) end |