fix specs

This commit is contained in:
r888888888
2014-03-24 14:05:50 -07:00
parent ae5fe58c77
commit 10d652fa9c
2 changed files with 2 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ class ForumPost < ActiveRecord::Base
end
def undelete!
update_attribute(:is_deleted, true)
update_attribute(:is_deleted, false)
update_topic_updated_at_on_create
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("502 503", result[0..6])
assert_equal(2009, result.size)
end
end