end
def test_browse_directory
- get :show, :id => PRJ_ID, :path => ['directory']
+ get :show, :id => PRJ_ID, :path => repository_path_hash(['directory'])[:param]
assert_response :success
assert_template 'show'
assert_not_nil assigns(:entries)
end
def test_browse_at_given_revision
- get :show, :id => PRJ_ID, :path => [], :rev => 3
+ get :show, :id => PRJ_ID, :path => repository_path_hash([])[:param],
+ :rev => 3
assert_response :success
assert_template 'show'
assert_not_nil assigns(:entries)
end
def test_changes
- get :changes, :id => PRJ_ID, :path => ['doc-mkdir.txt']
+ get :changes, :id => PRJ_ID,
+ :path => repository_path_hash(['doc-mkdir.txt'])[:param]
assert_response :success
assert_template 'changes'
assert_tag :tag => 'h2', :content => 'doc-mkdir.txt'
end
def test_entry_show
- get :entry, :id => PRJ_ID, :path => ['directory', 'doc-ls.txt']
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['directory', 'doc-ls.txt'])[:param]
assert_response :success
assert_template 'entry'
# Line 19
end
def test_entry_download
- get :entry, :id => PRJ_ID, :path => ['directory', 'doc-ls.txt'], :format => 'raw'
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['directory', 'doc-ls.txt'])[:param],
+ :format => 'raw'
assert_response :success
# File content
assert @response.body.include?('Show help message')
end
def test_directory_entry
- get :entry, :id => PRJ_ID, :path => ['directory']
+ get :entry, :id => PRJ_ID,
+ :path => repository_path_hash(['directory'])[:param]
assert_response :success
assert_template 'show'
assert_not_nil assigns(:entry)
end
def test_annotate
- get :annotate, :id => PRJ_ID, :path => ['doc-mkdir.txt']
+ get :annotate, :id => PRJ_ID,
+ :path => repository_path_hash(['doc-mkdir.txt'])[:param]
assert_response :success
assert_template 'annotate'
assert_tag :tag => 'th', :content => '2',