4 class LanguageTest < ActiveSupport::TestCase
7 def test_language_count
8 assert_equal 3, Language.count
12 assert_equal "English (English)", languages(:en).name
13 assert_equal "German (Deutsch)", languages(:de).name
14 assert_equal "Slovenian (slovenščina)", languages(:sl).name
18 assert_equal 3, Language.count
19 assert_raise ActiveRecord::RecordNotFound do
23 Language.load("config/languages.yml")
25 assert_equal 197, Language.count
26 assert_not_nil Language.find("zh")