git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10148
e93f8b46-1217-0410-a6f0-
8f06a7374b81
api.description version.description
api.status version.status
api.due_date version.effective_date
+ api.sharing version.sharing
render_api_custom_values version.custom_field_values, api
api.description @version.description
api.status @version.status
api.due_date @version.effective_date
+ api.sharing @version.sharing
render_api_custom_values @version.custom_field_values, api
assert_response :success
assert_equal 'application/xml', @response.content_type
- assert_tag 'version',
- :child => {
- :tag => 'id',
- :content => '2',
- :sibling => {
- :tag => 'name',
- :content => '1.0'
- }
- }
+ assert_select 'version' do
+ assert_select 'id', :text => '2'
+ assert_select 'name', :text => '1.0'
+ assert_select 'sharing', :text => 'none'
+ end
end
end