Add check whether problem has a translation

This commit is contained in:
pfischbeck committed 2014-12-29 20:28:33 +01:00
1 parent cbf17cfce0
commit 4c16813c92
8 files changed
+41 -5

No files matched your search

+3 -1
View File
@@ -9,7 +9,7 @@
Translation.delete_all
Problem.delete_all
for i in 1..103 do
for i in 1..10 do
translation = Translation.create(
problem_id: i,
title: "Problem Nummer #{i}",
@@ -17,3 +17,5 @@ for i in 1..103 do
)
Problem.create(id: i, translation: translation)
end
Problem.create(id: 11)