Sha256: 9f3498c20791ef7bcb83bb2296e514b1a88f2ea193d284805633d55dd72651fd
Contents?: true
Size: 933 Bytes
Versions: 1
Compression:
Stored size: 933 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: OpenStruct do title "Meh" description "Foo Bar" summary "Really lot of work to do" qc_job_check end factory :job_without_job_check, class: OpenStruct do title "Meh" description "Foo Bar" summary "Really lot of work to do" original_industry_id 1423 end factory :data, class: PreprocessedData do data ["haus fooo garten baaz pferd fooo"] ids {{function: 3, industry: 43, career_level: 7}} labels {{function: true, industry: false, career_level: 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.0 | spec/factories.rb |