diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-11 00:14:49 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-11 00:14:49 +0000 |
commit | a8871a5af77a4949304ee4479bc8e936c0e05a99 (patch) | |
tree | 66d191fbd5d52c51a4d1b6b82f5526c1ae6b8087 /test/functional/repositories_mercurial_controller_test.rb | |
parent | e8efb5ef71f3e7650d066b71eeede48614eefb34 (diff) | |
download | redmine-a8871a5af77a4949304ee4479bc8e936c0e05a99.tar.gz redmine-a8871a5af77a4949304ee4479bc8e936c0e05a99.zip |
scm: mercurial: add instance variable @project at functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6242 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_mercurial_controller_test.rb')
-rw-r--r-- | test/functional/repositories_mercurial_controller_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb index 47c7e9404..4b83abf15 100644 --- a/test/functional/repositories_mercurial_controller_test.rb +++ b/test/functional/repositories_mercurial_controller_test.rb @@ -37,8 +37,9 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new User.current = nil + @project = Project.find(PRJ_ID) @repository = Repository::Mercurial.create( - :project => Project.find(PRJ_ID), + :project => @project, :url => REPOSITORY_PATH, :path_encoding => 'ISO-8859-1' ) |