From 01e2180548595d6fa58d1999310adf778717a717 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Mon, 4 Mar 2019 09:02:12 +0530 Subject: [PATCH] FIX: /signup and /password-reset direct links were broken --- app/views/static/password_reset.html.erb | 1 + app/views/static/signup.html.erb | 1 + spec/requests/static_controller_spec.rb | 12 +++++++++++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 app/views/static/password_reset.html.erb create mode 100644 app/views/static/signup.html.erb diff --git a/app/views/static/password_reset.html.erb b/app/views/static/password_reset.html.erb new file mode 100644 index 00000000000..0100cc870b2 --- /dev/null +++ b/app/views/static/password_reset.html.erb @@ -0,0 +1 @@ + diff --git a/app/views/static/signup.html.erb b/app/views/static/signup.html.erb new file mode 100644 index 00000000000..1c5ecea63c2 --- /dev/null +++ b/app/views/static/signup.html.erb @@ -0,0 +1 @@ + diff --git a/spec/requests/static_controller_spec.rb b/spec/requests/static_controller_spec.rb index 7db1cdbb21b..feec6a38e7b 100644 --- a/spec/requests/static_controller_spec.rb +++ b/spec/requests/static_controller_spec.rb @@ -96,13 +96,23 @@ describe StaticController do end 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" expect(response.status).to eq(200) expect(response.body).to include(I18n.t('js.faq')) expect(response.body).to include("FAQ - Discourse") 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 [