@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :show, :id => PRJ_ID, :path => ['subversion_test']
+ get :show, :id => PRJ_ID, :path => repository_path_hash(['subversion_test'])[: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 => ['subversion_test'], :rev => 4
+ get :show, :id => PRJ_ID, :path => repository_path_hash(['subversion_test'])[:param],
+ :rev => 4
assert_response :success
assert_template 'show'
assert_not_nil assigns(:entries)
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :changes, :id => PRJ_ID, :path => ['subversion_test', 'folder', 'helloworld.rb' ]
+ get :changes, :id => PRJ_ID,
+ :path => repository_path_hash(['subversion_test', 'folder', 'helloworld.rb'])[:param]
assert_response :success
assert_template 'changes'
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :changes, :id => PRJ_ID, :path => ['subversion_test', 'folder' ]
+ get :changes, :id => PRJ_ID,
+ :path => repository_path_hash(['subversion_test', 'folder'])[:param]
assert_response :success
assert_template 'changes'
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :entry, :id => PRJ_ID, :path => ['subversion_test', 'helloworld.c']
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['subversion_test', 'helloworld.c'])[:param]
assert_response :success
assert_template 'entry'
end
assert_equal NUM_REV, @repository.changesets.count
# no files in the test repo is larger than 1KB...
with_settings :file_max_size_displayed => 0 do
- get :entry, :id => PRJ_ID, :path => ['subversion_test', 'helloworld.c']
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['subversion_test', 'helloworld.c'])[:param]
assert_response :success
assert_template ''
assert_equal 'attachment; filename="helloworld.c"',
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :entry, :id => PRJ_ID, :path => ['subversion_test', 'helloworld.rb'], :rev => 2
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['subversion_test', 'helloworld.rb'])[:param],
+ :rev => 2
assert_response :success
assert_template 'entry'
# this line was removed in r3 and file was moved in r6
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :entry, :id => PRJ_ID, :path => ['subversion_test', 'zzz.c']
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['subversion_test', 'zzz.c'])[:param]
assert_tag :tag => 'p', :attributes => { :id => /errorExplanation/ },
- :content => /The entry or revision was not found in the repository/
+ :content => /The entry or revision was not found in the repository/
end
def test_entry_download
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :entry, :id => PRJ_ID, :path => ['subversion_test', 'helloworld.c'], :format => 'raw'
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['subversion_test', 'helloworld.c'])[:param],
+ :format => 'raw'
assert_response :success
assert_template ''
assert_equal 'attachment; filename="helloworld.c"', @response.headers['Content-Disposition']
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :entry, :id => PRJ_ID, :path => ['subversion_test', 'folder']
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['subversion_test', 'folder'])[:param]
assert_response :success
assert_template 'show'
assert_not_nil assigns(:entry)
assert_equal NUM_REV, @repository.changesets.count
['inline', 'sbs'].each do |dt|
get :diff, :id => PRJ_ID, :rev => 6, :rev_to => 2,
- :path => ['subversion_test', 'folder'], :type => dt
+ :path => repository_path_hash(['subversion_test', 'folder'])[:param],
+ :type => dt
assert_response :success
assert_template 'diff'
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :annotate, :id => PRJ_ID, :path => ['subversion_test', 'helloworld.c']
+ get :annotate, :id => PRJ_ID,
+ :path => repository_path_hash(['subversion_test', 'helloworld.c'])[:param]
assert_response :success
assert_template 'annotate'
end
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- get :annotate, :id => PRJ_ID, :rev => 8, :path => ['subversion_test', 'helloworld.c']
+ get :annotate, :id => PRJ_ID, :rev => 8,
+ :path => repository_path_hash(['subversion_test', 'helloworld.c'])[:param]
assert_response :success
assert_template 'annotate'
assert_tag :tag => 'h2', :content => /@ 8/