Skip to content

Commit

Permalink
Removes the contact form
Browse files Browse the repository at this point in the history
The new contact form is located on the Libraries' website.
  • Loading branch information
rotated8 committed Feb 15, 2024
1 parent a840f2d commit 7cbbbb5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 47 deletions.
22 changes: 0 additions & 22 deletions app/views/hyrax/contact_form/new.html.erb

This file was deleted.

2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Rails.application.routes.draw do
mount Blacklight::Engine => '/'

get '/contact', to: redirect('https://libraries.emory.edu/research/open-access-publishing/emory-repositories-policy/etd/contact')

concern :searchable, Blacklight::Routes::Searchable.new

resource :catalog, only: [:index], as: 'catalog', path: '/catalog', controller: 'catalog' do
Expand Down
10 changes: 10 additions & 0 deletions spec/requests/contact_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require 'rails_helper'

RSpec.describe "ContactForm", type: :request do
describe "GET /contact" do
it "redirects to the new website" do
get '/contact'
expect(response).to redirect_to 'https://libraries.emory.edu/research/open-access-publishing/emory-repositories-policy/etd/contact'
end
end
end
10 changes: 0 additions & 10 deletions spec/system/contact_form_spec.rb

This file was deleted.

15 changes: 0 additions & 15 deletions spec/views/hyrax/contact_form/new.html.erb_spec.rb

This file was deleted.

0 comments on commit 7cbbbb5

Please sign in to comment.