Permalink
Browse files

Stub out FAQ; addresses #210.

- Update nav template
- Add FAQ stub page
- Update routes
- Add test
  • Loading branch information...
ruebot committed Nov 19, 2018
1 parent f671099 commit dd65d90a5ffe62a15a9a12694be38492a00a2244
@@ -2,6 +2,7 @@
<div class="bg-dark p-4">
<%= link_to "About", about_path, style: "color: white; font-size: large;" %>
<%= link_to "Documentation", "/documentation", style: "color: white; font-size: large; padding-left: 10px;" %>
<%= link_to "FAQ", "/faq", style: "color: white; font-size: large; padding-left: 10px;" %>
<%= link_to "Using Derivatives", "/derivatives", style: "color: white; font-size: large; padding-left: 10px;" %>
</div>
</div>
@@ -0,0 +1,7 @@
<% provide(:title, 'FAQ') %>
<% cache do %>
<div class="container">
<h1 class=about_h1>FAQ</h1>
</div>
<% end %>
@@ -22,6 +22,7 @@
get '/pages/:page' => 'pages#show'
get 'about' => 'pages#about'
get 'documentation' => 'pages#documentation'
get 'faq' => 'pages#faq'
get 'derivatives/gephi' => 'pages#gephi'
get 'derivatives/domains' => 'pages#domains'
get 'derivatives/text-antconc' => 'pages#text-antconc'
@@ -21,6 +21,12 @@ class PagesControllerTest < ActionDispatch::IntegrationTest
assert_select 'title', 'Documentation | Archives Unleashed'
end
test 'should get faq page' do
get faq_path
assert_response :success
assert_select 'title', 'FAQ | Archives Unleashed'
end
test 'should get derivatives page' do
get derivatives_path
assert_response :success

0 comments on commit dd65d90

Please sign in to comment.