Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 7
- Log:
Initial import of RForum 0.2 sources from a downloaded Tarball.
RForum is a Ruby On Rails based forum and mail gateway service.
- Author:
- adh
- Date:
- Sat Jul 22 18:43:13 +0100 2006
- Size:
- 445 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | class TagTest < Test::Unit::TestCase |
4 | fixtures 'forums', 'posts', 'topics', 'tags', 'topics_tags' |
5 | |
6 | def setup |
7 | @tag = Tag.find(1) |
8 | @topic = Topic.find(1) |
9 | end |
10 | |
11 | def test_tag |
12 | @topic.tags << @tag |
13 | assert_equal @topic, @tag.topics.first |
14 | end |
15 | |
16 | def test_tag_duplicate |
17 | @topic.tags << @tag |
18 | assert_raises(ActiveRecord::StatementInvalid) { @topic.tags << @tag } |
19 | end |
20 | end |