summaryrefslogtreecommitdiff
path: root/test/unit/user_test.rb
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2017-03-22 08:34:36 +0100
committerAzul <azul@riseup.net>2017-03-22 08:34:36 +0100
commit8c9a7f1c18bea2d54d7a425fc0fab783ce8d275f (patch)
tree63b7e04e3216f0fedd8e9791960f1d4d3a9d5298 /test/unit/user_test.rb
parent2f6273245e178387177db54e82d796e2b7b64525 (diff)
upgrade: bundle
update all the dependencies. minitest now wants assert_nil instead of assert_equal nil, ... braintree now uses update_attributes rather than save.
Diffstat (limited to 'test/unit/user_test.rb')
-rw-r--r--test/unit/user_test.rb3
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]