##// END OF EJS Templates
scm: mercurial: fix revision at functional diff test....
Toshi MARUYAMA -
r4598:2b24b6c9bb40
parent child
Show More
@@ -44,7 +44,7 class RepositoriesMercurialControllerTest < ActionController::TestCase
44 assert_not_nil assigns(:entries)
44 assert_not_nil assigns(:entries)
45 assert_not_nil assigns(:changesets)
45 assert_not_nil assigns(:changesets)
46 end
46 end
47
47
48 def test_show_root
48 def test_show_root
49 get :show, :id => 3
49 get :show, :id => 3
50 assert_response :success
50 assert_response :success
@@ -55,7 +55,7 class RepositoriesMercurialControllerTest < ActionController::TestCase
55 assert assigns(:entries).detect {|e| e.name == 'sources' && e.kind == 'dir'}
55 assert assigns(:entries).detect {|e| e.name == 'sources' && e.kind == 'dir'}
56 assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'}
56 assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'}
57 end
57 end
58
58
59 def test_show_directory
59 def test_show_directory
60 get :show, :id => 3, :path => ['images']
60 get :show, :id => 3, :path => ['images']
61 assert_response :success
61 assert_response :success
@@ -133,7 +133,7 class RepositoriesMercurialControllerTest < ActionController::TestCase
133
133
134 [4, '4', 'def6d2f1254a'].each do |r1|
134 [4, '4', 'def6d2f1254a'].each do |r1|
135 # Full diff of changeset 4
135 # Full diff of changeset 4
136 get :diff, :id => 3, :rev => 4
136 get :diff, :id => 3, :rev => r1
137 assert_response :success
137 assert_response :success
138 assert_template 'diff'
138 assert_template 'diff'
139
139
General Comments 0
You need to be logged in to leave comments. Login now