From a42eb3214d28d59767be9249f985fa7882c37ce5 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Thu, 16 Dec 2021 18:00:52 +0000 Subject: [PATCH] Replace test page with explictly named start page --- app/controllers/start_controller.rb | 3 +++ app/controllers/test_controller.rb | 3 --- app/views/{test => start}/index.html.erb | 0 config/routes.rb | 3 ++- .../{test_controller_spec.rb => start_controller_spec.rb} | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 app/controllers/start_controller.rb delete mode 100644 app/controllers/test_controller.rb rename app/views/{test => start}/index.html.erb (100%) rename spec/controllers/{test_controller_spec.rb => start_controller_spec.rb} (85%) diff --git a/app/controllers/start_controller.rb b/app/controllers/start_controller.rb new file mode 100644 index 000000000..259b9039d --- /dev/null +++ b/app/controllers/start_controller.rb @@ -0,0 +1,3 @@ +class StartController < ApplicationController + def index; end +end diff --git a/app/controllers/test_controller.rb b/app/controllers/test_controller.rb deleted file mode 100644 index cef2efef0..000000000 --- a/app/controllers/test_controller.rb +++ /dev/null @@ -1,3 +0,0 @@ -class TestController < ApplicationController - def index; end -end diff --git a/app/views/test/index.html.erb b/app/views/start/index.html.erb similarity index 100% rename from app/views/test/index.html.erb rename to app/views/start/index.html.erb diff --git a/config/routes.rb b/config/routes.rb index 5b34cc1b7..a565762a6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,7 +11,8 @@ Rails.application.routes.draw do # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html ActiveAdmin.routes(self) - root to: "test#index" + + root to: "start#index" resources :users do member do diff --git a/spec/controllers/test_controller_spec.rb b/spec/controllers/start_controller_spec.rb similarity index 85% rename from spec/controllers/test_controller_spec.rb rename to spec/controllers/start_controller_spec.rb index 881bbd00a..0422225aa 100644 --- a/spec/controllers/test_controller_spec.rb +++ b/spec/controllers/start_controller_spec.rb @@ -1,7 +1,7 @@ require "rails_helper" # Test Controller intital test -RSpec.describe TestController, type: :controller do +RSpec.describe StartController, type: :controller do let(:valid_session) { {} } describe "GET #index" do