]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/user_test.rb
Update to leaflet 1.0.2
[rails.git] / test / models / user_test.rb
index 275e95d6cba850fe3b8f0ab8165ee66d8b575266..d480849dd5c49336d44edbe4d8d56c6c39413bc8 100644 (file)
@@ -5,7 +5,7 @@ class UserTest < ActiveSupport::TestCase
   include Rails::Dom::Testing::Assertions::SelectorAssertions
 
   api_fixtures
-  fixtures :languages, :user_roles
+  fixtures :user_roles
 
   def test_invalid_with_empty_attributes
     user = User.new
@@ -191,6 +191,10 @@ class UserTest < ActiveSupport::TestCase
   end
 
   def test_languages
+    create(:language, :code => "en")
+    create(:language, :code => "de")
+    create(:language, :code => "sl")
+
     user = users(:normal_user)
     assert_equal ["en"], user.languages
     user.languages = %w(de fr en)