module Fix
Namespace for the Fix
framework.
@api public
Public Class Methods
describe(front_object, verbose: true, **options, &specs)
click to toggle source
Specs are built with this method.
@example 42 must be equal to 42
describe(42) do it { MUST equal 42 } end
@param front_object [BasicObject] The front object. @param options [Hash] Some options. @param specs [Proc] The set of specs.
@raise [SystemExit] The result of the test.
# File lib/fix.rb, line 20 def self.describe(front_object, verbose: true, **options, &specs) t = Test.new(front_object, verbose: verbose, **options, &specs) print t.report.to_s if verbose exit t.pass? end