diff options
Diffstat (limited to 'test/unit/user_test.rb')
-rw-r--r-- | test/unit/user_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index e181765..ab7add0 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -83,7 +83,8 @@ class UserTest < ActiveSupport::TestCase test "user to hash includes id, login, valid and enabled" do hash = @user.to_hash - assert_equal @user.id, hash[:id] + assert_nil @user.id + assert_nil hash[:id] assert_equal @user.valid?, hash[:ok] assert_equal @user.login, hash[:login] assert_equal @user.enabled?, hash[:enabled] |