diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-05 16:47:34 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-05 16:47:34 +0000 |
commit | 42f9dc7d2c5ac27b538ad5f33fcb132437ed5975 (patch) | |
tree | e69bf7daf18819f26779cd267c300a7e669eee65 /test/integration/api_test/issue_relations_test.rb | |
parent | 852cb183b184f65e352f2619250782f6de7dbfd9 (diff) | |
download | redmine-42f9dc7d2c5ac27b538ad5f33fcb132437ed5975.tar.gz redmine-42f9dc7d2c5ac27b538ad5f33fcb132437ed5975.zip |
Makes relations resource shallow (#7366).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6184 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test/issue_relations_test.rb')
-rw-r--r-- | test/integration/api_test/issue_relations_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/api_test/issue_relations_test.rb b/test/integration/api_test/issue_relations_test.rb index d02f63506..ab2da8731 100644 --- a/test/integration/api_test/issue_relations_test.rb +++ b/test/integration/api_test/issue_relations_test.rb @@ -73,10 +73,10 @@ class ApiTest::IssueRelationsTest < ActionController::IntegrationTest end end - context "/issues/:issue_id/relations/:id" do + context "/relations/:id" do context "GET" do should "return the relation" do - get '/issues/3/relations/2.xml', {}, :authorization => credentials('jsmith') + get '/relations/2.xml', {}, :authorization => credentials('jsmith') assert_response :success assert_equal 'application/xml', @response.content_type @@ -87,7 +87,7 @@ class ApiTest::IssueRelationsTest < ActionController::IntegrationTest context "DELETE" do should "delete the relation" do assert_difference('IssueRelation.count', -1) do - delete '/issues/3/relations/2.xml', {}, :authorization => credentials('jsmith') + delete '/relations/2.xml', {}, :authorization => credentials('jsmith') end assert_response :ok |