Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 24
- Log:
Initial import of Collaboa 0.5.6 from downloaded Tarball. Collaboa is
a Ruby On Rails based bug tracker and SVN repository browsing tool.
- Author:
- adh
- Date:
- Mon Jul 24 21:54:39 +0100 2006
- Size:
- 1095 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | |
3 | require 'repository' |
4 | |
5 | class ChangesetTest < Test::Unit::TestCase |
6 | fixtures :changesets |
7 | |
8 | def setup |
9 | @changeset1 = Changeset.find(1) |
10 | end |
11 | |
12 | def test_sync_changesets |
13 | assert Changeset.sync_changesets # run sync_changesets and make sure it goes ok |
14 | |
15 | assert_equal "importing test data", @changeset1.log |
16 | |
17 | assert_equal "edited file1.txt", Changeset.find(2).log |
18 | assert_equal 2, Changeset.find(2).revision |
19 | assert_equal "johan", Changeset.find(2).author |
20 | |
21 | assert_equal "edited file1.txt again", Changeset.find(3).log |
22 | assert_equal 3, Changeset.find(3).revision |
23 | assert_equal "johan", Changeset.find(3).author |
24 | assert_equal "file1.txt", Changeset.find(3).changes.first.path |
25 | assert_equal "M", Changeset.find(3).changes.first.name |
26 | end |
27 | |
28 | def test_search |
29 | q = Changeset.search("importing") |
30 | exp = [{:content=>"importing test data", |
31 | :title=>"Changeset #1", |
32 | :link=> |
33 | {:revision=>1, :controller=>"/repository", :action=>"show_changeset"}}] |
34 | assert_equal exp, q |
35 | end |
36 | |
37 | end |