spec/fabricators/challenge_fabricator.rb in polytrix-0.1.2 vs spec/fabricators/challenge_fabricator.rb in polytrix-0.1.3

- old
+ new

@@ -1,17 +1,10 @@ -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 } + name { SCENARIO_NAMES.sample } suite { LANGUAGES.sample } source_file { 'spec/fixtures/factorial.py' } basedir { 'spec/fixtures' } + implementor end