Sha256: b40c0c7e3ed661cb2ed48665833de63591c0a17d2722fd0e8c7312f86bd0c579
Contents?: true
Size: 655 Bytes
Versions: 6
Compression:
Stored size: 655 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
fix-0.15.2 | lib/fix.rb |
fix-0.15.1 | lib/fix.rb |
fix-0.15.0 | lib/fix.rb |
fix-0.14.1 | lib/fix.rb |
fix-0.14.0 | lib/fix.rb |
fix-0.13.0 | lib/fix.rb |