Skip to content

Commit

Permalink
Fix some json tests
Browse files Browse the repository at this point in the history
  • Loading branch information
indocomsoft committed Jun 23, 2018
1 parent 8518c0f commit a776bfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/cadet/assessments/answer_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ defmodule Cadet.Assessments.AnswerTest do
marks: 100,
answer: %{},
type: :programming,
raw_answer: ~s({"answer": "This is a sample json"})
raw_answer: Poison.encode!(%{answer: "This is a sample json"})
}
end

Expand Down
5 changes: 2 additions & 3 deletions test/cadet/assessments/question_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ defmodule Cadet.Assessments.QuestionTest do
weight: 4,
question: %{},
type: :programming,
raw_library: ~s({"week": 5, "globals": [], "externals": [],
"files": []}),
raw_question: ~s({"question": "This is a sample json"})
raw_library: Poison.encode!(%{week: 5, globals: [], externals: [], files: []}),
raw_question: Poison.encode!(%{question: "This is a sample json"})
}
end

Expand Down

0 comments on commit a776bfe

Please sign in to comment.