Sha256: b83fff5f9a96834247abf7b34c95b522e02b5374f8a7a3d0c421ee20f3f3a34d
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 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, options = {}, &specs) t = Test.new(front_object, options, &specs) print t.report.to_s if options.fetch(:verbose, true) 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.17.2 | lib/fix.rb |