scm: filesystem: add instance variable @project at functional test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6237 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-07-10 23:13:19 +00:00
parent dd8218590e
commit 7a8a98bd93

View File

@ -36,8 +36,9 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase
@response = ActionController::TestResponse.new
User.current = nil
Setting.enabled_scm << 'Filesystem' unless Setting.enabled_scm.include?('Filesystem')
@project = Project.find(PRJ_ID)
@repository = Repository::Filesystem.create(
:project => Project.find(PRJ_ID),
:project => @project,
:url => REPOSITORY_PATH,
:path_encoding => ''
)