This commit is contained in:
r888888888
2014-03-24 14:58:09 -07:00
parent 1c2aed92d7
commit eaf487bdb1
2 changed files with 7 additions and 1 deletions

View File

@@ -28,6 +28,9 @@ module DelayedJobsHelper
when "Class#process"
"<strong>update tag subscription</strong>"
when "Class#remove_iqdb"
"<strong>remove from iqdb</strong>"
else
h(job.name)
end
@@ -62,6 +65,9 @@ module DelayedJobsHelper
when "Class#process"
h(job.payload_object.args.flatten.join(" "))
when "Class#remove_iqdb"
h(job.payload_object.args.flatten.join(" "))
else
h(job.handler)
end

View File

@@ -110,7 +110,7 @@ class ForumTopicTest < ActiveSupport::TestCase
should "prune the string if it gets too long" do
array = (1..1_000).to_a.map(&:to_s).in_groups_of(2)
result = @topic.mark_as_read(array)
assert_equal(2009, result.size)
assert_operator result.size, :<, 3000
end
end