Sha256: 9d515040e69cb11488a8be79763cdb75b6d87f1e51acd3b58ae7d95c27f9634b
Contents?: true
Size: 672 Bytes
Versions: 8
Compression:
Stored size: 672 Bytes
Contents
require 'test_helper' class ForumTest < ActiveSupport::TestCase fixtures :all def test_should_list_only_top_level_topics assert_equal [topics(:sticky), topics(:il8n), topics(:ponies), topics(:pdi)], forums(:rails).topics.order('sticky DESC, created_at DESC').all end def test_should_find_first_recent_post assert_equal topics(:il8n), forums(:rails).topics.recently_replied.first end def test_should_format_body_html forum = Forum.new(:description => 'foo') forum.send :format_content assert_not_nil forum.description_html forum.description = '' forum.send :format_content assert forum.description_html.blank? end end
Version data entries
8 entries across 8 versions & 1 rubygems