Method: Pbt::Check::RunnerMethods#assert

Defined in:
lib/pbt/check/runner_methods.rb

#assert(**options, &property) ⇒ void

This method returns an undefined value.

Run a property based test and report its result.

Parameters:

  • options (Hash)

    Optional parameters to customize the execution.

  • property (Proc)

    Proc that returns Property instance.

Raises:

See Also:



21
22
23
24
# File 'lib/pbt/check/runner_methods.rb', line 21

def assert(**options, &property)
  out = check(**options, &property)
  Reporter::RunDetailsReporter.new(out).report_run_details
end