diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-28 16:50:26 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-28 16:50:26 +0000 |
commit | 3d317a435bb435b2ec8d2c6bc6ef3791dfcc080b (patch) | |
tree | a79efd76aa33eb06520f68ae2d984d38f934f4e7 /test | |
parent | 4c2264ee42eceeedc4787b9f3736b0bd19880d7a (diff) | |
download | redmine-3d317a435bb435b2ec8d2c6bc6ef3791dfcc080b.tar.gz redmine-3d317a435bb435b2ec8d2c6bc6ef3791dfcc080b.zip |
Adds an action to SysController to fetch changesets of one or all projects (#2925).
Exemples:
* /sys/fetch_changesets (=> fetches changesets for all active projects)
* /sys/fetch_changeseys?id=foo (=> fetches changesets for project foo only)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3107 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/sys_controller_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/sys_controller_test.rb b/test/functional/sys_controller_test.rb index 59b1d2af6..187fbe410 100644 --- a/test/functional/sys_controller_test.rb +++ b/test/functional/sys_controller_test.rb @@ -53,4 +53,19 @@ class SysControllerTest < ActionController::TestCase assert r.is_a?(Repository::Subversion) assert_equal 'file:///create/project/repository/subproject2', r.url end + + def test_fetch_changesets + get :fetch_changesets + assert_response :success + end + + def test_fetch_changesets_one_project + get :fetch_changesets, :id => 'ecookbook' + assert_response :success + end + + def test_fetch_changesets_unknown_project + get :fetch_changesets, :id => 'unknown' + assert_response 404 + end end |