diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-07 20:22:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-07 20:22:06 +0000 |
commit | 15996c348d5a83d13774edd1e529cba597decd81 (patch) | |
tree | cbab75d36157ea0e2d304a39e84a65cd347b2ce0 /test/functional/repositories_subversion_controller_test.rb | |
parent | a64928fa6be2a0295acc62a2de45e5d7340b8630 (diff) | |
download | redmine-15996c348d5a83d13774edd1e529cba597decd81.tar.gz redmine-15996c348d5a83d13774edd1e529cba597decd81.zip |
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
Diffstat (limited to 'test/functional/repositories_subversion_controller_test.rb')
-rw-r--r-- | test/functional/repositories_subversion_controller_test.rb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb index 245a170d1..1ec8dc4a9 100644 --- a/test/functional/repositories_subversion_controller_test.rb +++ b/test/functional/repositories_subversion_controller_test.rb @@ -78,13 +78,15 @@ class RepositoriesSubversionControllerTest < Test::Unit::TestCase get :changes, :id => 1, :path => ['subversion_test', 'folder', 'helloworld.rb' ] assert_response :success assert_template 'changes' - # svn properties - assert_not_nil assigns(:properties) - assert_equal 'native', assigns(:properties)['svn:eol-style'] - assert_tag :ul, - :child => { :tag => 'li', - :child => { :tag => 'b', :content => 'svn:eol-style' }, - :child => { :tag => 'span', :content => 'native' } } + # svn properties displayed with svn >= 1.5 only + if Redmine::Scm::Adapters::SubversionAdapter.client_version_above?([1, 5, 0]) + assert_not_nil assigns(:properties) + assert_equal 'native', assigns(:properties)['svn:eol-style'] + assert_tag :ul, + :child => { :tag => 'li', + :child => { :tag => 'b', :content => 'svn:eol-style' }, + :child => { :tag => 'span', :content => 'native' } } + end end def test_entry |