Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 171
- Log:
Initial import of Beast 0.9 from downloaded Tarball. Beast is a Ruby
On Rails based forum application. The original tarball came from the
following location:http://s3.amazonaws.com/beast-forum/beast-0.9.tar.gz
The forum post which announced this version's availability was at:
http://beast.caboo.se/forums/1/topics/446
- Author:
- rool
- Date:
- Fri Mar 02 15:51:55 +0000 2007
- Size:
- 823 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | class ModeratorshipTest < Test::Unit::TestCase |
4 | all_fixtures |
5 | |
6 | def test_should_find_moderators |
7 | assert_models_equal [users(:sam)], forums(:rails).moderators |
8 | end |
9 | |
10 | def test_should_find_moderated_forums |
11 | assert_models_equal [forums(:rails)], users(:sam).forums |
12 | end |
13 | |
14 | def test_should_add_moderator |
15 | assert_equal [], forums(:comics).moderators |
16 | assert_difference Moderatorship, :count do |
17 | forums(:comics).moderators << users(:sam) |
18 | end |
19 | assert_models_equal [users(:sam)], forums(:comics).moderators(true) |
20 | end |
21 | |
22 | def test_should_not_add_duplicate_moderator |
23 | assert_models_equal [users(:sam)], forums(:rails).moderators |
24 | assert_difference Moderatorship, :count, 0 do |
25 | forums(:rails).moderators << users(:sam) |
26 | end |
27 | end |
28 | end |