Skip to content

Commit

Permalink
Add route for roadmap and its tests
Browse files Browse the repository at this point in the history
  • Loading branch information
riggraz committed Aug 28, 2019
1 parent bdc3c32 commit fdcb942
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
13 changes: 13 additions & 0 deletions spec/routing/static_pages_routing_spec.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fdcb942

Please sign in to comment.