Fixes a test failure with svn < 1.5 (#2455).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2249 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a64928fa6b
commit
15996c348d
|
@ -78,13 +78,15 @@ class RepositoriesSubversionControllerTest < Test::Unit::TestCase
|
||||||
get :changes, :id => 1, :path => ['subversion_test', 'folder', 'helloworld.rb' ]
|
get :changes, :id => 1, :path => ['subversion_test', 'folder', 'helloworld.rb' ]
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'changes'
|
assert_template 'changes'
|
||||||
# svn properties
|
# svn properties displayed with svn >= 1.5 only
|
||||||
assert_not_nil assigns(:properties)
|
if Redmine::Scm::Adapters::SubversionAdapter.client_version_above?([1, 5, 0])
|
||||||
assert_equal 'native', assigns(:properties)['svn:eol-style']
|
assert_not_nil assigns(:properties)
|
||||||
assert_tag :ul,
|
assert_equal 'native', assigns(:properties)['svn:eol-style']
|
||||||
:child => { :tag => 'li',
|
assert_tag :ul,
|
||||||
:child => { :tag => 'b', :content => 'svn:eol-style' },
|
:child => { :tag => 'li',
|
||||||
:child => { :tag => 'span', :content => 'native' } }
|
:child => { :tag => 'b', :content => 'svn:eol-style' },
|
||||||
|
:child => { :tag => 'span', :content => 'native' } }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_entry
|
def test_entry
|
||||||
|
|
Loading…
Reference in New Issue