From: Toshi MARUYAMA Date: Sun, 10 Jul 2011 23:13:19 +0000 (+0000) Subject: scm: filesystem: add instance variable @project at functional test. X-Git-Tag: 1.3.0~1686 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7a8a98bd93d483797eb46d5f5cf78904715dc95f;p=redmine.git 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 --- diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb index bf221346f..8b3f5f5b8 100644 --- a/test/functional/repositories_filesystem_controller_test.rb +++ b/test/functional/repositories_filesystem_controller_test.rb @@ -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 => '' )