summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-31 18:14:28 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-31 18:14:28 +0000
commitb603aa74f9ea6b4775c9ab9897faa63cd6ba3da8 (patch)
treea885a891766abf4cad3b5fd8ca8b9dd1edc86e89 /test/integration
parentc57a2974d16e7ce9706f0bc7aab279c53b4895fc (diff)
downloadredmine-b603aa74f9ea6b4775c9ab9897faa63cd6ba3da8.tar.gz
redmine-b603aa74f9ea6b4775c9ab9897faa63cd6ba3da8.zip
Adds sharing attribute to the versions API (#11541).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10148 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/api_test/versions_test.rb14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/integration/api_test/versions_test.rb b/test/integration/api_test/versions_test.rb
index 90b0fb17a..30ef19d7b 100644
--- a/test/integration/api_test/versions_test.rb
+++ b/test/integration/api_test/versions_test.rb
@@ -103,15 +103,11 @@ class ApiTest::VersionsTest < ActionController::IntegrationTest
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