diff --git a/app/controllers/about_controller.rb b/app/controllers/about_controller.rb deleted file mode 100644 index 65749b384..000000000 --- a/app/controllers/about_controller.rb +++ /dev/null @@ -1,3 +0,0 @@ -class AboutController < ApplicationController - def index; end -end diff --git a/app/views/about/index.html.erb b/app/views/about/index.html.erb deleted file mode 100644 index 8de21683c..000000000 --- a/app/views/about/index.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<% content_for :title, "About" %> - -

- <%= content_for(:title) %> -

diff --git a/app/views/test/index.html.erb b/app/views/test/index.html.erb index a60d8f44a..57f99242d 100644 --- a/app/views/test/index.html.erb +++ b/app/views/test/index.html.erb @@ -26,5 +26,3 @@ ]) end end %> - -<%= govuk_link_to('About', about_path) %> diff --git a/config/routes.rb b/config/routes.rb index 9da87682c..5b34cc1b7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -12,7 +12,6 @@ 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" - get "about", to: "about#index" resources :users do member do diff --git a/spec/features/test_spec.rb b/spec/features/test_spec.rb index b54b08919..bfcceb7ff 100644 --- a/spec/features/test_spec.rb +++ b/spec/features/test_spec.rb @@ -4,11 +4,4 @@ RSpec.describe "Test Features" do visit("/") expect(page).to have_content("Log social housing lettings and sales (CORE)") end - - it "Links to the About page" do - visit("/") - click_link("About") - expect(current_path).to eql("/about") - expect(page).to have_content("About") - end end