summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test/api_routing_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-01 13:22:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-01 13:22:35 +0000
commit696c51085246058408c5f709927df8db07b90d54 (patch)
tree782cdb47dbff4378ccbdd0ca861ea179be8cb8e4 /test/integration/api_test/api_routing_test.rb
parenta2bcc9c40eb99b901f2f92b2f4fa1f840583c6b8 (diff)
downloadredmine-696c51085246058408c5f709927df8db07b90d54.tar.gz
redmine-696c51085246058408c5f709927df8db07b90d54.zip
Add support for updating attachments over REST API (#22356).
git-svn-id: http://svn.redmine.org/redmine/trunk@15861 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test/api_routing_test.rb')
-rw-r--r--test/integration/api_test/api_routing_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/integration/api_test/api_routing_test.rb b/test/integration/api_test/api_routing_test.rb
index ccdb93307..5e686a9e2 100644
--- a/test/integration/api_test/api_routing_test.rb
+++ b/test/integration/api_test/api_routing_test.rb
@@ -21,6 +21,7 @@ class Redmine::ApiTest::ApiRoutingTest < Redmine::ApiTest::Routing
def test_attachments
should_route 'GET /attachments/1' => 'attachments#show', :id => '1'
+ should_route 'PATCH /attachments/1' => 'attachments#update', :id => '1'
should_route 'POST /uploads' => 'attachments#upload'
end