live coder seeding - completes #16

This commit is contained in:
Mark Moser
2016-08-23 21:54:53 -05:00
parent 393fd15ab5
commit 2b55fed1bc
12 changed files with 79 additions and 27 deletions

View File

@ -3,13 +3,15 @@ class AnswerValidatable
attr_accessor :answer
attr_accessor :question
attr_accessor :question_id
validates :answer, answer_format: true
MockQuestion = Struct.new(:input_type)
def initialize input_type
def initialize input_type, qid = nil
@input_type = input_type
@question_id = qid
end
def question