Sha256: 57eb9be80edc8ac6b7405540cbe85bc4abc35a40599178f07dc3b39d65a00a8b

Contents?: true

Size: 418 Bytes

Versions: 2

Compression:

Stored size: 418 Bytes

Contents

require 'hashie/mash'

Fabricator(:validator, from: Polytrix::Validator) do
  initialize_with do
    callback = @_transient_attributes.delete :callback
    scope = @_transient_attributes
    @_klass.new(scope, &callback)
  end # Hash based initialization
  transient suite: LANGUAGES.sample
  transient sample: SAMPLE_NAMES.sample
  transient callback: Proc.new { Proc.new { |challenge| } } # rubocop:disable Proc
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
polytrix-0.1.0 spec/fabricators/validator_fabricator.rb
polytrix-0.1.0.pre spec/fabricators/validator_fabricator.rb