Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 173
- Log:
Updated to latest release of Beast according to the "getting started with
Beast" guide at:http://beast.caboo.se/forums/1/topics/381
This check-in includes frozen Edge Rails and has the beginnings of
configuration for the ROOL site included.
- Author:
- rool
- Date:
- Fri Mar 02 15:59:12 +0000 2007
- Size:
- 824 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | class ForumTest < Test::Unit::TestCase |
4 | all_fixtures |
5 | |
6 | def test_should_list_only_top_level_topics |
7 | assert_models_equal [topics(:sticky), topics(:il8n), topics(:ponies), topics(:pdi)], forums(:rails).topics |
8 | end |
9 | |
10 | def test_should_list_recent_posts |
11 | assert_models_equal [posts(:il8n), posts(:ponies), posts(:pdi_rebuttal), posts(:pdi_reply), posts(:pdi),posts(:sticky) ], forums(:rails).posts |
12 | end |
13 | |
14 | def test_should_find_last_post |
15 | assert_equal posts(:il8n), forums(:rails).posts.last |
16 | end |
17 | |
18 | def test_should_format_body_html |
19 | forum = Forum.new(:description => 'foo') |
20 | forum.send :format_content |
21 | assert_not_nil forum.description_html |
22 | |
23 | forum.description = '' |
24 | forum.send :format_content |
25 | assert forum.description_html.blank? |
26 | end |
27 | end |