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
@@ -13,7 +13,7 @@ class TranslationTest < ActiveSupport::TestCase
|
||||
|
||||
test "should not save translation with duplicate title" do
|
||||
translation = Translation.new(
|
||||
title: translations(:one).title,
|
||||
title: translations(:translation_one).title,
|
||||
content: 'This is some content'
|
||||
)
|
||||
assert_not translation.save
|
||||
@@ -23,7 +23,7 @@ class TranslationTest < ActiveSupport::TestCase
|
||||
translation = Translation.new(
|
||||
title: 'A unique title',
|
||||
content: 'Some content',
|
||||
problem: Problem.first
|
||||
problem_id: 1
|
||||
)
|
||||
assert translation.save
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user