From: Tom Hughes Date: Mon, 5 Aug 2013 22:04:31 +0000 (+0100) Subject: Remove deprecated assert_blank and assert_present from tests X-Git-Tag: live~5273 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/75795125ad387af87be76afc28282f79856f0bb1 Remove deprecated assert_blank and assert_present from tests --- diff --git a/test/integration/oauth_test.rb b/test/integration/oauth_test.rb index 11b874e6b..7ccf0917e 100644 --- a/test/integration/oauth_test.rb +++ b/test/integration/oauth_test.rb @@ -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 diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 175d47e22..1283f4168 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -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?