Sha256: edcf4aebacc26d38404157de4486ddc76ad64d5b4312aabc2e3c91eb2685c83a
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
# frozen_string_literal: true # Namespace for the Fix framework. # # @api public # module Fix # 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. 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 end require_relative File.join('fix', 'test')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fix-0.18.2 | lib/fix.rb |