summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-07-11 01:08:56 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-07-11 01:08:56 +0000
commit61e6dc0a482108d96f43fd30417d9fbf034c82b7 (patch)
tree24f931fcc29cf74d0578861648670218616da4ee
parentd34d933f31e87f704e9a07ce4546a76ee1a91481 (diff)
downloadredmine-61e6dc0a482108d96f43fd30417d9fbf034c82b7.tar.gz
redmine-61e6dc0a482108d96f43fd30417d9fbf034c82b7.zip
scm: git: add instance variable @project at functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6248 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/repositories_git_controller_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb
index bbe219d9c..26f1a532f 100644
--- a/test/functional/repositories_git_controller_test.rb
+++ b/test/functional/repositories_git_controller_test.rb
@@ -46,9 +46,10 @@ class RepositoriesGitControllerTest < ActionController::TestCase
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
User.current = nil
+ @project = Project.find(PRJ_ID)
@repository = Repository::Git.create(
- :project => Project.find(3),
- :url => REPOSITORY_PATH,
+ :project => @project,
+ :url => REPOSITORY_PATH,
:path_encoding => 'ISO-8859-1'
)
assert @repository