forked from bofh/fetsite
AutoCommit Don Jul 30 00:03:02 CEST 2015
This commit is contained in:
7
spec/factories/survey_answers.rb
Normal file
7
spec/factories/survey_answers.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
FactoryGirl.define do
|
||||
factory :survey_answer, :class => 'Survey::Answer' do
|
||||
choice nil
|
||||
user nil
|
||||
end
|
||||
|
||||
end
|
||||
9
spec/factories/survey_choices.rb
Normal file
9
spec/factories/survey_choices.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
FactoryGirl.define do
|
||||
factory :survey_choice, :class => 'Survey::Choice' do
|
||||
text "MyString"
|
||||
question nil
|
||||
sort 1
|
||||
picture "MyString"
|
||||
end
|
||||
|
||||
end
|
||||
8
spec/factories/survey_questions.rb
Normal file
8
spec/factories/survey_questions.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
FactoryGirl.define do
|
||||
factory :survey_question, :class => 'Survey::Question' do
|
||||
title "MyString"
|
||||
text "MyText"
|
||||
typ 1
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user