Sha256: 032feb4e3ff0e7891e5f65644ca2f285e38b232cbb3d3e23c8af221c2377a2b9
Contents?: true
Size: 654 Bytes
Versions: 2
Compression:
Stored size: 654 Bytes
Contents
# 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}" if options.fetch(:verbose, true) exit t.pass? end end require_relative File.join 'fix', 'test'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fix-0.17.0 | lib/fix.rb |
fix-0.16.0 | lib/fix.rb |