lib/fix.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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')