@@ -1,5 +1,5 | |||
|
1 | 1 | # Redmine - project management software |
|
2 |
# Copyright (C) 2006-20 |
|
|
2 | # Copyright (C) 2006-2011 Jean-Philippe Lang | |
|
3 | 3 | # |
|
4 | 4 | # This program is free software; you can redistribute it and/or |
|
5 | 5 | # modify it under the terms of the GNU General Public License |
@@ -17,12 +17,13 | |||
|
17 | 17 | |
|
18 | 18 | require File.expand_path('../../test_helper', __FILE__) |
|
19 | 19 | require 'sys_controller' |
|
20 | require 'mocha' | |
|
20 | 21 | |
|
21 | 22 | # Re-raise errors caught by the controller. |
|
22 | 23 | class SysController; def rescue_action(e) raise e end; end |
|
23 | 24 | |
|
24 | 25 | class SysControllerTest < ActionController::TestCase |
|
25 | fixtures :projects, :repositories | |
|
26 | fixtures :projects, :repositories, :enabled_modules | |
|
26 | 27 | |
|
27 | 28 | def setup |
|
28 | 29 | @controller = SysController.new |
@@ -55,11 +56,13 class SysControllerTest < ActionController::TestCase | |||
|
55 | 56 | end |
|
56 | 57 | |
|
57 | 58 | def test_fetch_changesets |
|
59 | Repository::Subversion.any_instance.expects(:fetch_changesets).returns(true) | |
|
58 | 60 | get :fetch_changesets |
|
59 | 61 | assert_response :success |
|
60 | 62 | end |
|
61 | 63 | |
|
62 | 64 | def test_fetch_changesets_one_project |
|
65 | Repository::Subversion.any_instance.expects(:fetch_changesets).returns(true) | |
|
63 | 66 | get :fetch_changesets, :id => 'ecookbook' |
|
64 | 67 | assert_response :success |
|
65 | 68 | end |
General Comments 0
You need to be logged in to leave comments.
Login now