Improved tests (added reset block).
This commit is contained in:
parent
cebc0e89af
commit
24e86fa50f
1 changed files with 8 additions and 4 deletions
|
@ -3,12 +3,12 @@ require 'test_helper'
|
|||
|
||||
class TranslationTest < ActiveSupport::TestCase
|
||||
|
||||
test 'setup' do
|
||||
test '1 - setup' do
|
||||
Translation.reset('de-de')
|
||||
Translation.load('de-de')
|
||||
end
|
||||
|
||||
test 'basics' do
|
||||
test '2 - basics' do
|
||||
tests = [
|
||||
{
|
||||
locale: 'en',
|
||||
|
@ -37,7 +37,7 @@ class TranslationTest < ActiveSupport::TestCase
|
|||
}
|
||||
end
|
||||
|
||||
test 'own translation tests' do
|
||||
test '3 - own translation tests' do
|
||||
locale = 'de-de'
|
||||
|
||||
# check for custom changes
|
||||
|
@ -97,7 +97,7 @@ class TranslationTest < ActiveSupport::TestCase
|
|||
|
||||
end
|
||||
|
||||
test 'file based import' do
|
||||
test '4 - file based import' do
|
||||
|
||||
# locales
|
||||
directory = Rails.root.join('config')
|
||||
|
@ -122,4 +122,8 @@ class TranslationTest < ActiveSupport::TestCase
|
|||
|
||||
end
|
||||
|
||||
test '5 - restore' do
|
||||
Translation.load('de-de')
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue