FIX: /signup and /password-reset direct links were broken

This commit is contained in:
Arpit Jalan 2019-03-04 09:02:12 +05:30
parent 9585e2dff2
commit 01e2180548
3 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1 @@
<!-- this file is required to show the password reset modal: /password-reset -->

View File

@ -0,0 +1 @@
<!-- this file is required to show the signup modal: /signup -->

View File

@ -96,13 +96,23 @@ describe StaticController do
end end
context "with a static file that's present" do context "with a static file that's present" do
it "should return the right response" do it "should return the right response for /faq" do
get "/faq" get "/faq"
expect(response.status).to eq(200) expect(response.status).to eq(200)
expect(response.body).to include(I18n.t('js.faq')) expect(response.body).to include(I18n.t('js.faq'))
expect(response.body).to include("<title>FAQ - Discourse</title>") expect(response.body).to include("<title>FAQ - Discourse</title>")
end end
it "should return the right response for /signup" do
get "/signup"
expect(response.status).to eq(200)
end
it "should return the right response for /password-reset" do
get "/password-reset"
expect(response.status).to eq(200)
end
end end
[ [