diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-11 01:08:56 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-11 01:08:56 +0000 |
commit | 61e6dc0a482108d96f43fd30417d9fbf034c82b7 (patch) | |
tree | 24f931fcc29cf74d0578861648670218616da4ee | |
parent | d34d933f31e87f704e9a07ce4546a76ee1a91481 (diff) | |
download | redmine-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.rb | 5 |
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 |