live coder seeding - completes #16
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user