From cbac73f1ef3edc9ca77215ff268226c355f465a0 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 7 Feb 2016 14:13:37 +0100 Subject: [PATCH] Save record after new role assignment. --- test/unit/user_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 1c4a1437f..1c23ee0b8 100644 --- a/test/unit/user_test.rb +++ b/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')