spec/routing/pwb/routing_spec.rb in pwb-1.3.0 vs spec/routing/pwb/routing_spec.rb in pwb-1.4.0

- old
+ new

@@ -12,21 +12,32 @@ end context 'with locale parameter' do it 'routes to welcome_controller#index' do expect({ - get: '/en' + get: '/en' }).to route_to( controller: 'pwb/welcome', action: 'index', locale: 'en' ) end end end + describe 'welcome routing' do it 'routes to welcome_controller#index' do expect(get: '/welcome').to route_to('pwb/welcome#index') + end + end + + describe 'about-us routing' do + it 'routes to pages_controller#show_page' do + expect(get: '/about-us').to route_to( + controller: 'pwb/pages', + action: 'show_page', + page_slug: "about-us" + ) end end describe 'devise routing' do it 'routes to devise_controller#index' do