Commit 2b24b6c9 authored by Toshi MARUYAMA's avatar Toshi MARUYAMA

scm: mercurial: fix revision at functional diff test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4718 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent effc33fe
...@@ -44,7 +44,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase ...@@ -44,7 +44,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
assert_not_nil assigns(:entries) assert_not_nil assigns(:entries)
assert_not_nil assigns(:changesets) assert_not_nil assigns(:changesets)
end end
def test_show_root def test_show_root
get :show, :id => 3 get :show, :id => 3
assert_response :success assert_response :success
...@@ -55,7 +55,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase ...@@ -55,7 +55,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
assert assigns(:entries).detect {|e| e.name == 'sources' && e.kind == 'dir'} assert assigns(:entries).detect {|e| e.name == 'sources' && e.kind == 'dir'}
assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'} assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'}
end end
def test_show_directory def test_show_directory
get :show, :id => 3, :path => ['images'] get :show, :id => 3, :path => ['images']
assert_response :success assert_response :success
...@@ -133,7 +133,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase ...@@ -133,7 +133,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
[4, '4', 'def6d2f1254a'].each do |r1| [4, '4', 'def6d2f1254a'].each do |r1|
# Full diff of changeset 4 # Full diff of changeset 4
get :diff, :id => 3, :rev => 4 get :diff, :id => 3, :rev => r1
assert_response :success assert_response :success
assert_template 'diff' assert_template 'diff'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment