From 4dfdfeaafd7061b103d4b33ae65829b060941858 Mon Sep 17 00:00:00 2001 From: Blake Erickson Date: Tue, 8 Sep 2020 13:23:11 -0600 Subject: [PATCH] DEV: Resolve this child category pending request spec (#10604) There is a request spec that was ignored with the `xit` flag almost a year ago and every time you generate the api docs with ``` rake rswag:specs:swaggerize ``` it shows the output of this pending test and I guess I finally got sick of looking at it, so here is a fix for it. Original Commit: d84c34ad7523c6f894315dcbfc0b215dff3b3707 --- spec/requests/list_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/requests/list_controller_spec.rb b/spec/requests/list_controller_spec.rb index 328677fd19f..c0299f2b904 100644 --- a/spec/requests/list_controller_spec.rb +++ b/spec/requests/list_controller_spec.rb @@ -408,9 +408,9 @@ RSpec.describe ListController do end context "with invalid slug" do - xit "redirects" do + it "redirects" do get "/c/random_slug/another_random_slug/#{child_category.id}/l/latest" - expect(response).to redirect_to(child_category.url) + expect(response).to redirect_to("#{child_category.url}/l/latest") end end end