diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-10 23:13:19 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-10 23:13:19 +0000 |
commit | 7a8a98bd93d483797eb46d5f5cf78904715dc95f (patch) | |
tree | 3ac73a8c9659e945a94b94888729019b6d5c536a | |
parent | dd8218590e0e0890495e5ed36ce9546e77dc9a09 (diff) | |
download | redmine-7a8a98bd93d483797eb46d5f5cf78904715dc95f.tar.gz redmine-7a8a98bd93d483797eb46d5f5cf78904715dc95f.zip |
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
-rw-r--r-- | test/functional/repositories_filesystem_controller_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 => '' ) |