Files
astuto/spec/routing/static_pages_routing_spec.rb

25 lines
643 B
Ruby
Raw Normal View History

2019-08-28 18:54:25 +02:00
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: 'root'
2019-08-28 18:54:25 +02:00
)
expect(get: '/roadmap').to route_to(
controller: 'static_pages', action: 'roadmap'
)
end
2022-07-18 10:47:54 +02:00
it 'routes pending tenant page' do
expect(get: '/pending-tenant').to route_to(
controller: 'static_pages', action: 'pending_tenant'
)
end
it 'routes blocked tenant page' do
expect(get: '/blocked-tenant').to route_to(
controller: 'static_pages', action: 'blocked_tenant'
)
end
2019-08-28 18:54:25 +02:00
end