FIX: /signup and /password-reset direct links were broken
This commit is contained in:
parent
9585e2dff2
commit
01e2180548
|
@ -0,0 +1 @@
|
||||||
|
<!-- this file is required to show the password reset modal: /password-reset -->
|
|
@ -0,0 +1 @@
|
||||||
|
<!-- this file is required to show the signup modal: /signup -->
|
|
@ -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
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue