Sha256: 5f3045ecf11a37ec76c053bd884d3768e765cd1a7de2af48f9f81ef23791118d
Contents?: true
Size: 662 Bytes
Versions: 8
Compression:
Stored size: 662 Bytes
Contents
require_relative File.join 'fix', 'test' # 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. # # @return [ExpectationTarget] The expectation target. def self.describe(front_object, options = {}, &specs) t = Test.new(front_object, options, &specs) puts "#{t.report}" if options.fetch(:verbose, true) exit t.pass? end end
Version data entries
8 entries across 8 versions & 1 rubygems
Version | Path |
---|---|
fix-0.12.1 | lib/fix.rb |
fix-0.12.0 | lib/fix.rb |
fix-0.11.1 | lib/fix.rb |
fix-0.11.0 | lib/fix.rb |
fix-0.10.0 | lib/fix.rb |
fix-0.9.1 | lib/fix.rb |
fix-0.9.0 | lib/fix.rb |
fix-0.8.0 | lib/fix.rb |