Added test for i18n long description

This commit is contained in:
Christoph Haas 2015-04-24 13:49:05 +02:00
parent c944e1ba91
commit 10ebc63dc1

View file

@ -32,5 +32,9 @@ class PackagesHelperTest < ActionView::TestCase
# Packages enumerator must be restarted to start from position 1
packages = release.packages('main', 'amd64')
assert_equal 8320, packages.count
# Get information from translation file
i18n = release.i18n('main', 'en')
assert_match /^Real-time strategy game of ancient warfare\n0 A\.D\./, i18n.first[:'Description-en']
end # test
end # class