mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-11-23 19:33:46 +01:00
Rename translation fixtures, explicitly use problem ids
This commit is contained in:
1 parent
fa86abc06d
commit
d1470f391e
4 files changed
+12
-10
No files matched your search
Vendored
+4
-2
@@ -1,7 +1,9 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
Translation_id:
|
||||
id: 1
|
||||
translation_id: <%= ActiveRecord::FixtureSet.identify(:translation_one) %>
|
||||
|
||||
two:
|
||||
Translation_id:
|
||||
id: 2
|
||||
translation_id: <%= ActiveRecord::FixtureSet.identify(:translation_two) %>
|
||||
Vendored
+4
-4
@@ -1,11 +1,11 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
problem: one
|
||||
translation_one:
|
||||
problem_id: 1
|
||||
title: First title
|
||||
content: The content of the translation
|
||||
|
||||
two:
|
||||
problem: two
|
||||
translation_two:
|
||||
problem_id: 2
|
||||
title: Second title
|
||||
content: The content of the second translation
|
||||
Reference in new issue
Block a user