]> source.dussan.org Git - redmine.git/commitdiff
scm: filesystem: add instance variable @project at functional test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 10 Jul 2011 23:13:19 +0000 (23:13 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 10 Jul 2011 23:13:19 +0000 (23:13 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6237 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_filesystem_controller_test.rb

index bf221346f61a062bc1ee30a8eba7579bf8270b0a..8b3f5f5b82a36b403061e762089d8c044359af8a 100644 (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 => ''
                       )