diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-25 12:57:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-25 12:57:30 +0000 |
commit | cf9154f924ff73f4220b9958b245eb59161af17d (patch) | |
tree | 101af50cbdae75152f0c0d9e19283626b4eaa32c /test/functional/sys_controller_test.rb | |
parent | 0cc60f36314ed6362cb9332dfc88ac9f7a513600 (diff) | |
download | redmine-cf9154f924ff73f4220b9958b245eb59161af17d.tar.gz redmine-cf9154f924ff73f4220b9958b245eb59161af17d.zip |
Can not use Project#find on scopes with Rails 3.1.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9001 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/sys_controller_test.rb')
-rw-r--r-- | test/functional/sys_controller_test.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/functional/sys_controller_test.rb b/test/functional/sys_controller_test.rb index 97368b200..558a6d936 100644 --- a/test/functional/sys_controller_test.rb +++ b/test/functional/sys_controller_test.rb @@ -89,12 +89,18 @@ class SysControllerTest < ActionController::TestCase assert_response :success end - def test_fetch_changesets_one_project + def test_fetch_changesets_one_project_by_identifier Repository::Subversion.any_instance.expects(:fetch_changesets).once.returns(true) get :fetch_changesets, :id => 'ecookbook' assert_response :success end + def test_fetch_changesets_one_project_by_id + Repository::Subversion.any_instance.expects(:fetch_changesets).once.returns(true) + get :fetch_changesets, :id => '1' + assert_response :success + end + def test_fetch_changesets_unknown_project get :fetch_changesets, :id => 'unknown' assert_response 404 |