From e6f0466a10fc468da3dd5f479e4af61a2d9b6c65 Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Fri, 5 Aug 2016 13:10:10 -0500 Subject: [PATCH] moved flash error --- app/views/candidate/_live_code.html.erb | 4 ++-- test/fixtures/candidates.yml | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/views/candidate/_live_code.html.erb b/app/views/candidate/_live_code.html.erb index 08a51ae..f64a39f 100644 --- a/app/views/candidate/_live_code.html.erb +++ b/app/views/candidate/_live_code.html.erb @@ -11,6 +11,8 @@ Please revisit this page with JavaScript enabled to modify your answer. --> +<%= render partial: "candidate/answer_errors", locals: {question: question, answer: @answer} %> +

This is a question where you will be asked to write code, and it utilizes a JavaScript-enabled @@ -33,5 +35,3 @@ # to check for JS capability/enabled %>

- -<%= render partial: "candidate/answer_errors", locals: {question: question, answer: @answer} %> diff --git a/test/fixtures/candidates.yml b/test/fixtures/candidates.yml index f845583..8cb3696 100644 --- a/test/fixtures/candidates.yml +++ b/test/fixtures/candidates.yml @@ -10,6 +10,16 @@ roy: reminded: false test_hash: NmEjDkOEKY4 +gillian: + name: Gillian Anderson + email: gillian.anderson@mailinator.com + experience: 4-6 + recruiter: recruiter + quiz: fed + completed: false + reminded: false + test_hash: fbBOCmkhVC0 + martha: name: Martha Watts email: martha.watts@mailinator.com