spec/factories.rb in svm_helper-0.1.1 vs spec/factories.rb in svm_helper-0.2.1
- old
+ new
@@ -16,16 +16,17 @@
initialize_with { attributes }
end
factory :data, class: PreprocessedData do
- data ["haus fooo garten baaz pferd fooo"]
+ data %w(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"]
+ data %w(auto pferd gooo fooo)
+ label false
end
factory :data_w_multiple_sections, parent: :data do
- data ["meeh foo auto","bz baaz fooo 2"]
+ data [%w(meeh auto),%w(baaz fooo)]
end
end