live coder seeding - completes #16

This commit is contained in:
Mark Moser committed 2016-08-23 21:54:53 -05:00
1 parent 393fd15ab5
commit 2b55fed1bc
12 files changed
+79 -27

No files matched your search

+3 -1
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