##// END OF EJS Templates
Rails3: test: scm: darcs: use "repository_path_hash" for path param...
Toshi MARUYAMA -
r8815:844d90442625
parent child
Show More
@@ -69,7 +69,7 class RepositoriesDarcsControllerTest < ActionController::TestCase
69 @repository.fetch_changesets
69 @repository.fetch_changesets
70 @project.reload
70 @project.reload
71 assert_equal NUM_REV, @repository.changesets.count
71 assert_equal NUM_REV, @repository.changesets.count
72 get :show, :id => PRJ_ID, :path => ['images']
72 get :show, :id => PRJ_ID, :path => repository_path_hash(['images'])[:param]
73 assert_response :success
73 assert_response :success
74 assert_template 'show'
74 assert_template 'show'
75 assert_not_nil assigns(:entries)
75 assert_not_nil assigns(:entries)
@@ -85,7 +85,8 class RepositoriesDarcsControllerTest < ActionController::TestCase
85 @repository.fetch_changesets
85 @repository.fetch_changesets
86 @project.reload
86 @project.reload
87 assert_equal NUM_REV, @repository.changesets.count
87 assert_equal NUM_REV, @repository.changesets.count
88 get :show, :id => PRJ_ID, :path => ['images'], :rev => 1
88 get :show, :id => PRJ_ID, :path => repository_path_hash(['images'])[:param],
89 :rev => 1
89 assert_response :success
90 assert_response :success
90 assert_template 'show'
91 assert_template 'show'
91 assert_not_nil assigns(:entries)
92 assert_not_nil assigns(:entries)
@@ -97,7 +98,8 class RepositoriesDarcsControllerTest < ActionController::TestCase
97 @repository.fetch_changesets
98 @repository.fetch_changesets
98 @project.reload
99 @project.reload
99 assert_equal NUM_REV, @repository.changesets.count
100 assert_equal NUM_REV, @repository.changesets.count
100 get :changes, :id => PRJ_ID, :path => ['images', 'edit.png']
101 get :changes, :id => PRJ_ID,
102 :path => repository_path_hash(['images', 'edit.png'])[:param]
101 assert_response :success
103 assert_response :success
102 assert_template 'changes'
104 assert_template 'changes'
103 assert_tag :tag => 'h2', :content => 'edit.png'
105 assert_tag :tag => 'h2', :content => 'edit.png'
General Comments 0
You need to be logged in to leave comments. Login now