]> source.dussan.org Git - redmine.git/commitdiff
Fixes a test failure with svn < 1.5 (#2455).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 7 Jan 2009 20:22:06 +0000 (20:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 7 Jan 2009 20:22:06 +0000 (20:22 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2249 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_subversion_controller_test.rb

index 245a170d16b04e4df703707557c60a2adad57793..1ec8dc4a9a1bd3d7642fee93e8315b160aa30a82 100644 (file)
@@ -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