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