Add test for category <tag> -> type bulk update requests.

This commit is contained in:
evazion
2017-11-17 12:14:37 -06:00
parent 5726bc43dd
commit 07d20f7cf0

View File

@@ -95,6 +95,16 @@ class BulkUpdateRequestTest < ActiveSupport::TestCase
end
end
context "for a `category <tag> -> type` change" do
should "work" do
tag = Tag.find_or_create_by_name("tagme")
bur = FactoryGirl.create(:bulk_update_request, :script => "category tagme -> meta")
bur.approve!(@admin)
assert_equal(Tag.categories.meta, tag.reload.category)
end
end
context "with an associated forum topic" do
setup do
@topic = FactoryGirl.create(:forum_topic, :title => "[bulk] hoge")