Sha256: 0a2c67242837e41bccb94634d40497c1a9528248bca69d9d4c641ffc4e2534cc

Contents?: true

Size: 982 Bytes

Versions: 1

Compression:

Stored size: 982 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

require_relative 'sandbox'

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.8.0 lib/fix/on.rb