Sha256: 1fdd39695ec0b2014167103b02ec6c77baa59225a20ca25d2fa76b79cf4f983e

Contents?: true

Size: 954 Bytes

Versions: 1

Compression:

Stored size: 954 Bytes

Contents

require 'spectus/challenge'
require 'spectus/result/fail'

require_relative 'it'

%w(it on).each do |helper|
  require_relative File.join 'helpers', "#{helper}_helper"
end

module Fix
  # Wraps the target of challenge.
  #
  # @api private
  #
  class On
    # Initialize the on class.
    #
    # @param front_object   [BasicObject] The front object of the test.
    # @param results        [Array]       The list of collected results.
    # @param challenges     [Array]       The list of challenges to apply.
    # @param configuration  [Hash]        Settings.
    def initialize(front_object, results, challenges, configuration = {})
      @front_object   = front_object
      @results        = results
      @challenges     = challenges
      @configuration  = configuration
    end

    # @!attribute [r] results
    #
    # @return [Array] The results.
    attr_reader :results

    [ItHelper, OnHelper].each { |helper| include helper }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fix-0.9.0 lib/fix/on.rb