Remove mod-only bulk revert system (#4178).

The mass undo system added in #4178 is a replacement for the mod-only
bulk revert system.
This commit is contained in:
evazion
2019-09-27 20:51:56 -05:00
parent 1341dbb262
commit f2dccf8cf1
12 changed files with 1 additions and 353 deletions

View File

@@ -1,20 +0,0 @@
require 'test_helper'
class BulkRevertTest < ActiveSupport::TestCase
context "#find_post_versions" do
subject do
@user = FactoryBot.create(:user)
BulkRevert.new
end
setup do
subject.stubs(:constraints).returns({added_tags: ["a"]})
subject.expects(:query_gbq).returns([1,2,3])
end
should "revert all changes found in a search" do
q = subject.find_post_versions
assert_match(/post_versions\.id in \(1,2,3\)/, q.to_sql)
end
end
end