##// 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 get :changes, :id => 1, :path => ['subversion_test', 'folder', 'helloworld.rb' ]
78 get :changes, :id => 1, :path => ['subversion_test', 'folder', 'helloworld.rb' ]
79 assert_response :success
79 assert_response :success
80 assert_template 'changes'
80 assert_template 'changes'
81 # svn properties
81 # svn properties displayed with svn >= 1.5 only
82 assert_not_nil assigns(:properties)
82 if Redmine::Scm::Adapters::SubversionAdapter.client_version_above?([1, 5, 0])
83 assert_equal 'native', assigns(:properties)['svn:eol-style']
83 assert_not_nil assigns(:properties)
84 assert_tag :ul,
84 assert_equal 'native', assigns(:properties)['svn:eol-style']
85 :child => { :tag => 'li',
85 assert_tag :ul,
86 :child => { :tag => 'b', :content => 'svn:eol-style' },
86 :child => { :tag => 'li',
87 :child => { :tag => 'span', :content => 'native' } }
87 :child => { :tag => 'b', :content => 'svn:eol-style' },
88 :child => { :tag => 'span', :content => 'native' } }
89 end
88 end
90 end
89
91
90 def test_entry
92 def test_entry
General Comments 0
You need to be logged in to leave comments. Login now