@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :show, :id => PRJ_ID, :path => ['images']
+ get :show, :id => PRJ_ID, :path => repository_path_hash(['images'])[:param]
assert_response :success
assert_template 'show'
assert_not_nil assigns(:entries)
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :show, :id => PRJ_ID, :path => ['images'], :rev => 1
+ get :show, :id => PRJ_ID, :path => repository_path_hash(['images'])[:param],
+ :rev => 1
assert_response :success
assert_template 'show'
assert_not_nil assigns(:entries)
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :entry, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb']
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param]
assert_response :success
assert_template 'entry'
assert_no_tag :tag => 'td',
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :entry, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb'], :rev => 2
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param],
+ :rev => 2
assert_response :success
assert_template 'entry'
# this line was removed in r3
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :entry, :id => PRJ_ID, :path => ['sources', 'zzz.c']
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['sources', 'zzz.c'])[:param]
assert_tag :tag => 'p',
:attributes => { :id => /errorExplanation/ },
:content => /The entry or revision was not found in the repository/
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :entry, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb'],
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param],
:format => 'raw'
assert_response :success
end
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :entry, :id => PRJ_ID, :path => ['sources']
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['sources'])[:param]
assert_response :success
assert_template 'show'
assert_not_nil assigns(:entry)
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :annotate, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb']
+ get :annotate, :id => PRJ_ID,
+ :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param]
assert_response :success
assert_template 'annotate'
# 1.1 line