Revision 2249
Added by Jean-Philippe Lang over 16 years ago
trunk/test/functional/repositories_subversion_controller_test.rb | ||
---|---|---|
78 | 78 |
get :changes, :id => 1, :path => ['subversion_test', 'folder', 'helloworld.rb' ] |
79 | 79 |
assert_response :success |
80 | 80 |
assert_template 'changes' |
81 |
# svn properties |
|
82 |
assert_not_nil assigns(:properties) |
|
83 |
assert_equal 'native', assigns(:properties)['svn:eol-style'] |
|
84 |
assert_tag :ul, |
|
85 |
:child => { :tag => 'li', |
|
86 |
:child => { :tag => 'b', :content => 'svn:eol-style' }, |
|
87 |
:child => { :tag => 'span', :content => 'native' } } |
|
81 |
# svn properties displayed with svn >= 1.5 only |
|
82 |
if Redmine::Scm::Adapters::SubversionAdapter.client_version_above?([1, 5, 0]) |
|
83 |
assert_not_nil assigns(:properties) |
|
84 |
assert_equal 'native', assigns(:properties)['svn:eol-style'] |
|
85 |
assert_tag :ul, |
|
86 |
:child => { :tag => 'li', |
|
87 |
:child => { :tag => 'b', :content => 'svn:eol-style' }, |
|
88 |
:child => { :tag => 'span', :content => 'native' } } |
|
89 |
end |
|
88 | 90 |
end |
89 | 91 |
|
90 | 92 |
def test_entry |
Also available in: Unified diff
Fixes a test failure with svn < 1.5 (#2455).