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

View File

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