From d7f3f4a7ff74147317c78b6e16718890b93706d4 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 18 Jan 2016 02:35:07 +0100 Subject: [PATCH] Improved tests. --- test/unit/notification_factory_test.rb | 3 +++ test/unit/translation_test.rb | 14 ++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/test/unit/notification_factory_test.rb b/test/unit/notification_factory_test.rb index 53721668d..cc695ea34 100644 --- a/test/unit/notification_factory_test.rb +++ b/test/unit/notification_factory_test.rb @@ -2,6 +2,9 @@ require 'test_helper' class NotificationFactoryTest < ActiveSupport::TestCase + + Translation.load('de-de') + test 'notifications send' do result = NotificationFactory.send( recipient: User.find(2), diff --git a/test/unit/translation_test.rb b/test/unit/translation_test.rb index e18359439..02d47043a 100644 --- a/test/unit/translation_test.rb +++ b/test/unit/translation_test.rb @@ -2,24 +2,26 @@ require 'test_helper' class TranslationTest < ActiveSupport::TestCase + + Translation.load('de-de') + test 'translation' do tests = [ - - # test 1 { locale: 'en', string: 'New', result: 'New', }, - - # test 2 + { + locale: 'en-us', + string: 'New', + result: 'New', + }, { locale: 'de-de', string: 'New', result: 'Neu', }, - - # test 3 { locale: 'de-de', string: 'not translated - lalala',