summaryrefslogtreecommitdiff
path: root/test/unit
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
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')
-rw-r--r--test/unit/identity_test.rb4
-rw-r--r--test/unit/user_test.rb3
2 files changed, 4 insertions, 3 deletions
diff --git a/test/unit/identity_test.rb b/test/unit/identity_test.rb
index e9173af..6836487 100644
--- a/test/unit/identity_test.rb
+++ b/test/unit/identity_test.rb
@@ -122,8 +122,8 @@ class IdentityTest < ActiveSupport::TestCase
@id = Identity.for(@user)
@id.orphan!
assert_equal @user.email_address, @id.address
- assert_equal nil, @id.destination
- assert_equal nil, @id.user
+ assert_nil @id.destination
+ assert_nil @id.user
assert @id.orphaned?
assert @id.valid?
end
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]