mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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: d84c34ad75
This commit is contained in:
parent
d4a7058cb1
commit
4dfdfeaafd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user