Sha256: a229d9dad9a79bce511f4ceecaf326070af3d7023621fa7ed4386fba18974fe9

Contents?: true

Size: 659 Bytes

Versions: 1

Compression:

Stored size: 659 Bytes

Contents

require 'factory_girl'
require 'ostruct'

FactoryGirl.define do
  factory :qc_job_check, class: OpenStruct do
    wrong_industry_id nil
    wrong_function_id 4
    wrong_career_level nil
  end
  factory :job, class: Hash do
    title "Meh"
    description "Foo Bar"
    id 4
    label true

    initialize_with { attributes }
  end


  factory :data, class: PreprocessedData do
    data ["haus fooo garten baaz pferd fooo"]
    id 7
    label true
  end
  factory :data_w_short_words, parent: :data do
    data ["auto foo pferd bz gooo fooo 2"]
  end
  factory :data_w_multiple_sections, parent: :data do
    data ["meeh foo auto","bz baaz fooo 2"]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
svm_helper-0.1.1 spec/factories.rb