Add more options for surveys

* Survey period constraints
* Add abilities
* Enforce required questions
* Update survey_submssion updated_at
* Do a full match of possible answer and user reply
This commit is contained in:
Stella Rouzi 2018-02-09 19:07:10 +02:00
parent c278e547ce
commit 683f62a27c
36 changed files with 219 additions and 74 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
FactoryGirl.define do
factory :survey_question do
survey

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
FactoryGirl.define do
factory :survey_reply do
user

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
FactoryGirl.define do
factory :survey_submission do
user

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
FactoryGirl.define do
factory :survey do
title 'This is my survey'