Sha256: 8ed46122d7d9faf0dbb6e704b62f78e3f568858d8261fcfdb6071df62a4619ac
Contents?: true
Size: 662 Bytes
Versions: 4
Compression:
Stored size: 662 Bytes
Contents
# frozen_string_literal: true # Namespace for the Fix framework. # 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, **lets, &block) c = Context.new(front_object, ::Defi.send(:itself), **lets) c.instance_eval(&block) end end require_relative 'kernel' require_relative File.join('fix', 'context')
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fix-1.0.0.beta4 | lib/fix.rb |
fix-1.0.0.beta3 | lib/fix.rb |
fix-1.0.0.beta2 | lib/fix.rb |
fix-1.0.0.beta1 | lib/fix.rb |