@@ -69,7 +69,7 class RepositoriesDarcsControllerTest < ActionController::TestCase | |||
|
69 | 69 | @repository.fetch_changesets |
|
70 | 70 | @project.reload |
|
71 | 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 | 73 | assert_response :success |
|
74 | 74 | assert_template 'show' |
|
75 | 75 | assert_not_nil assigns(:entries) |
@@ -85,7 +85,8 class RepositoriesDarcsControllerTest < ActionController::TestCase | |||
|
85 | 85 | @repository.fetch_changesets |
|
86 | 86 | @project.reload |
|
87 | 87 | assert_equal NUM_REV, @repository.changesets.count |
|
88 |
get :show, :id => PRJ_ID, :path => ['images'], |
|
|
88 | get :show, :id => PRJ_ID, :path => repository_path_hash(['images'])[:param], | |
|
89 | :rev => 1 | |
|
89 | 90 | assert_response :success |
|
90 | 91 | assert_template 'show' |
|
91 | 92 | assert_not_nil assigns(:entries) |
@@ -97,7 +98,8 class RepositoriesDarcsControllerTest < ActionController::TestCase | |||
|
97 | 98 | @repository.fetch_changesets |
|
98 | 99 | @project.reload |
|
99 | 100 | assert_equal NUM_REV, @repository.changesets.count |
|
100 |
get :changes, :id => PRJ_ID, |
|
|
101 | get :changes, :id => PRJ_ID, | |
|
102 | :path => repository_path_hash(['images', 'edit.png'])[:param] | |
|
101 | 103 | assert_response :success |
|
102 | 104 | assert_template 'changes' |
|
103 | 105 | assert_tag :tag => 'h2', :content => 'edit.png' |
General Comments 0
You need to be logged in to leave comments.
Login now