##// END OF EJS Templates
Fixes a test failure with svn < 1.5 (#2455)....
Jean-Philippe Lang -
r2247:15996c348d5a
parent child
Show More
@@ -78,13 +78,15 class RepositoriesSubversionControllerTest < Test::Unit::TestCase
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
General Comments 0
You need to be logged in to leave comments. Login now