summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-07-10 23:13:19 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-07-10 23:13:19 +0000
commit7a8a98bd93d483797eb46d5f5cf78904715dc95f (patch)
tree3ac73a8c9659e945a94b94888729019b6d5c536a
parentdd8218590e0e0890495e5ed36ce9546e77dc9a09 (diff)
downloadredmine-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.rb3
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 => ''
)