Add route for roadmap and its tests

This commit is contained in:
riggraz
2019-08-28 18:54:25 +02:00
parent bdc3c3233c
commit fdcb942e78
2 changed files with 14 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
Rails.application.routes.draw do
root to: 'static_pages#roadmap'
get '/roadmap', to: 'static_pages#roadmap'
namespace :admin do
root to: 'boards#index'

View File

@@ -0,0 +1,13 @@
require 'rails_helper'
RSpec.describe 'static pages routing', :aggregate_failures, type: :routing do
it 'routes roadmap' do
expect(get: '/').to route_to(
controller: 'static_pages', action: 'roadmap'
)
expect(get: '/roadmap').to route_to(
controller: 'static_pages', action: 'roadmap'
)
end
end