| 1234567891011121314151617181920 |
- # frozen_string_literal: true
- require 'rails_helper'
- RSpec.describe WelcomeController, type: :routing do
- it 'routes to #root' do
- expect(get('/')).to route_to('welcome#root')
- end
- context 'all other paths' do
- it 'routes to welcome#root' do
- path = Faker::Lorem.word
- expect(get("/#{path}")).to route_to(
- controller: 'welcome',
- action: 'root',
- path: path,
- )
- end
- end
- end
|