Remove deprecated assert_blank and assert_present from tests
This commit is contained in:
parent
70448559b2
commit
75795125ad
2 changed files with 2 additions and 2 deletions
|
@ -356,7 +356,7 @@ private
|
|||
params = CGI.parse(URI.parse(response.location).query)
|
||||
|
||||
assert_not_nil params["oauth_verifier"]
|
||||
assert_present params["oauth_verifier"].first
|
||||
assert params["oauth_verifier"].first.present?
|
||||
|
||||
params["oauth_verifier"].first
|
||||
end
|
||||
|
|
|
@ -231,7 +231,7 @@ class UserTest < ActiveSupport::TestCase
|
|||
user = users(:normal_user)
|
||||
user.delete
|
||||
assert_equal "user_#{user.id}", user.display_name
|
||||
assert_blank user.description
|
||||
assert user.description.blank?
|
||||
assert_equal nil, user.home_lat
|
||||
assert_equal nil, user.home_lon
|
||||
assert_equal false, user.image.file?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue