]> git.openstreetmap.org Git - rails.git/commitdiff
Remove deprecated assert_blank and assert_present from tests
authorTom Hughes <tom@compton.nu>
Mon, 5 Aug 2013 22:04:31 +0000 (23:04 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 21 Sep 2013 11:03:53 +0000 (12:03 +0100)
test/integration/oauth_test.rb
test/unit/user_test.rb

index 11b874e6bed14535fe08d1f30b130e0f5d2075d2..7ccf0917eba04b4ab07acd9c923a53b9ca3d3224 100644 (file)
@@ -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
index 175d47e22e2172eccd7bd6a9a0b670fc4109f2a5..1283f416852078e861fb1c456629d159eab0632d 100644 (file)
@@ -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?