SCM:
* Fixes file log for non-Git repositories (Repository#latest_changesets ignores path argument) * No longer used Repository#changesets_for_path method removed git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2844 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -79,6 +79,11 @@ class RepositoriesSubversionControllerTest < Test::Unit::TestCase
|
||||
get :changes, :id => 1, :path => ['subversion_test', 'folder', 'helloworld.rb' ]
|
||||
assert_response :success
|
||||
assert_template 'changes'
|
||||
|
||||
changesets = assigns(:changesets)
|
||||
assert_not_nil changesets
|
||||
assert_equal %w(6 3 2), changesets.collect(&:revision)
|
||||
|
||||
# svn properties displayed with svn >= 1.5 only
|
||||
if Redmine::Scm::Adapters::SubversionAdapter.client_version_above?([1, 5, 0])
|
||||
assert_not_nil assigns(:properties)
|
||||
|
||||
@@ -41,8 +41,8 @@ class SearchControllerTest < Test::Unit::TestCase
|
||||
:sibling => { :tag => 'dd', :content => /should be classified by categories/ }
|
||||
|
||||
assert assigns(:results_by_type).is_a?(Hash)
|
||||
assert_equal 4, assigns(:results_by_type)['changesets']
|
||||
assert_tag :a, :content => 'Changesets (4)'
|
||||
assert_equal 5, assigns(:results_by_type)['changesets']
|
||||
assert_tag :a, :content => 'Changesets (5)'
|
||||
end
|
||||
|
||||
def test_search_issues
|
||||
|
||||
Reference in New Issue
Block a user