Browse Source

Replace test page with explictly named start page

pull/173/head
Paul Robert Lloyd 4 years ago
parent
commit
a42eb3214d
  1. 3
      app/controllers/start_controller.rb
  2. 3
      app/controllers/test_controller.rb
  3. 0
      app/views/start/index.html.erb
  4. 3
      config/routes.rb
  5. 2
      spec/controllers/start_controller_spec.rb

3
app/controllers/start_controller.rb

@ -0,0 +1,3 @@
class StartController < ApplicationController
def index; end
end

3
app/controllers/test_controller.rb

@ -1,3 +0,0 @@
class TestController < ApplicationController
def index; end
end

0
app/views/test/index.html.erb → app/views/start/index.html.erb

3
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

2
spec/controllers/test_controller_spec.rb → 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
Loading…
Cancel
Save