Browse Source

Save record after new role assignment.

Martin Edenhofer 9 years ago
parent
commit
cbac73f1ef
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/unit/user_test.rb

+ 1 - 0
test/unit/user_test.rb

@@ -335,6 +335,7 @@ class UserTest < ActiveSupport::TestCase
     assert_not(customer1.preferences['notification_config'])
 
     customer1.roles = Role.where(name: 'Agent')
+    customer1.save
     assert(customer1.preferences)
     assert(customer1.preferences['locale'])
     assert_equal(customer1.preferences['locale'], 'de-de')