api: fix legacy /post/index and /tag/index endpoints.

Fixup for a1cd9d2b5. The route order matters here, the legacy endpoints
need to go first.
This commit is contained in:
evazion
2020-12-25 02:43:56 -06:00
parent d9db32640a
commit ae49ed2b1a
2 changed files with 31 additions and 6 deletions

View File

@@ -0,0 +1,25 @@
require 'test_helper'
class LegacyControllerTest < ActionDispatch::IntegrationTest
context "The legacy controller" do
context "post action" do
should "work" do
get "/post/index.xml"
assert_response :success
get "/post/index.json"
assert_response :success
end
end
context "tag action" do
should "work" do
get "/tag/index.xml"
assert_response :success
get "/tag/index.json"
assert_response :success
end
end
end
end