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:
- 887 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 | assert_raise ActiveRecord::RecordNotSaved do |
26 | forums(:rails).moderators << users(:sam) |
27 | end |
28 | end |
29 | end |
30 | end |