Browse Source

Delete about page

pull/173/head
Paul Robert Lloyd 4 years ago
parent
commit
f9942269d4
  1. 3
      app/controllers/about_controller.rb
  2. 5
      app/views/about/index.html.erb
  3. 2
      app/views/test/index.html.erb
  4. 1
      config/routes.rb
  5. 7
      spec/features/test_spec.rb

3
app/controllers/about_controller.rb

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

5
app/views/about/index.html.erb

@ -1,5 +0,0 @@
<% content_for :title, "About" %>
<h1 class="govuk-heading-l">
<%= content_for(:title) %>
</h1>

2
app/views/test/index.html.erb

@ -26,5 +26,3 @@
])
end
end %>
<%= govuk_link_to('About', about_path) %>

1
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

7
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

Loading…
Cancel
Save