Sha256: e601df787c71dcf776ca3cf6e504a4844f43cb051bd9c6a441c4c4d9700ed66e

Contents?: true

Size: 457 Bytes

Versions: 4

Compression:

Stored size: 457 Bytes

Contents

require 'hashie/mash'

# Fabricates test manifests (.polytrix_tests.yml files)
LANGUAGES = %w(java ruby python nodejs c# golang php)
SAMPLE_NAMES = [
  'hello world',
  'quine',
  'my_kata'
]

Fabricator(:challenge, from: Polytrix::Challenge) do
  initialize_with { @_klass.new to_hash } # Hash based initialization
  name { SAMPLE_NAMES.sample }
  suite { LANGUAGES.sample }
  source_file { 'spec/fixtures/factorial.py' }
  basedir { 'spec/fixtures' }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
polytrix-0.1.2 spec/fabricators/challenge_fabricator.rb
polytrix-0.1.1 spec/fabricators/challenge_fabricator.rb
polytrix-0.1.0 spec/fabricators/challenge_fabricator.rb
polytrix-0.1.0.pre spec/fabricators/challenge_fabricator.rb