]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/changeset_subscriptions_controller_test.rb
Update to i18n-js 4.x
[rails.git] / test / controllers / changeset_subscriptions_controller_test.rb
index 7d899ac87810c3bb9be45961ba9a8c611f1bb7c8..d6696cc2971bb5c09c367b6d5d814b420f9b12d1 100644 (file)
@@ -84,7 +84,7 @@ class ChangesetSubscriptionsControllerTest < ActionDispatch::IntegrationTest
       post changeset_subscription_path(changeset)
     end
     assert_redirected_to changeset_path(changeset)
-    assert changeset.reload.subscribed?(other_user)
+    assert_includes changeset.reload.subscribers, other_user
   end
 
   def test_create_fail
@@ -122,7 +122,7 @@ class ChangesetSubscriptionsControllerTest < ActionDispatch::IntegrationTest
       delete changeset_subscription_path(changeset)
     end
     assert_redirected_to changeset_path(changeset)
-    assert_not changeset.reload.subscribed?(other_user)
+    assert_not_includes changeset.reload.subscribers, other_user
   end
 
   def test_unsubscribe_fail