diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-05-18 08:57:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-05-18 08:57:27 +0000 |
commit | 8f7b69f77e7f92d3b81c0fbd9a0a70169b4d21e9 (patch) | |
tree | 31d2955a3ce8d0e02d6327e916cdfd261fdb9081 /test/integration/api_test/queries_test.rb | |
parent | 0d4bb7558fdc955e07b69cd4015f2ecb3b5803c7 (diff) | |
download | redmine-8f7b69f77e7f92d3b81c0fbd9a0a70169b4d21e9.tar.gz redmine-8f7b69f77e7f92d3b81c0fbd9a0a70169b4d21e9.zip |
Removed some shoulda context.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11863 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test/queries_test.rb')
-rw-r--r-- | test/integration/api_test/queries_test.rb | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/test/integration/api_test/queries_test.rb b/test/integration/api_test/queries_test.rb index 57e8f6659..37cf9a6b8 100644 --- a/test/integration/api_test/queries_test.rb +++ b/test/integration/api_test/queries_test.rb @@ -31,28 +31,23 @@ class Redmine::ApiTest::QueriesTest < Redmine::ApiTest::Base Setting.rest_api_enabled = '1' end - context "/queries" do - context "GET" do + test "GET /queries.xml should return queries" do + get '/queries.xml' - should "return queries" do - get '/queries.xml' - - assert_response :success - assert_equal 'application/xml', @response.content_type - assert_tag :tag => 'queries', - :attributes => {:type => 'array'}, - :child => { - :tag => 'query', - :child => { - :tag => 'id', - :content => '4', - :sibling => { - :tag => 'name', - :content => 'Public query for all projects' - } - } + assert_response :success + assert_equal 'application/xml', @response.content_type + assert_tag :tag => 'queries', + :attributes => {:type => 'array'}, + :child => { + :tag => 'query', + :child => { + :tag => 'id', + :content => '4', + :sibling => { + :tag => 'name', + :content => 'Public query for all projects' } - end - end + } + } end end |