improve bulk update req ui

This commit is contained in:
r888888888
2015-04-21 17:22:16 -07:00
parent 3a66e521fc
commit ee4c19a0dd
6 changed files with 17 additions and 6 deletions

View File

@@ -20,7 +20,11 @@ class BulkUpdateRequestTest < ActiveSupport::TestCase
setup do
@admin = FactoryGirl.create(:admin_user)
@topic = FactoryGirl.create(:forum_topic)
@req = FactoryGirl.create(:bulk_update_request, :script => "create alias aaa -> bbb", :forum_topic => @topic)
@req = FactoryGirl.create(:bulk_update_request, :script => "create alias AAA -> BBB", :forum_topic => @topic)
end
should "downcase the text" do
assert_equal("create alias aaa -> bbb", @req.script)
end
should "update the topic when processed" do