Sha256: b3d23f7292b20f8507914589b13f4b148f44706631c844a60e97faf0458b64cd
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
require "rails_helper" module MnoEnterprise RSpec.describe PagesController, type: :routing do routes { MnoEnterprise::Engine.routes } it "routes to #launch" do expect(get("/launch/cld-1f47d5s4")).to route_to("mno_enterprise/pages#launch", id: 'cld-1f47d5s4') expect(get("/launch/bla.mcube.co")).to route_to("mno_enterprise/pages#launch", id: 'bla.mcube.co') end it "routes to #launch" do expect(get("/loading/cld-1f47d5s4")).to route_to("mno_enterprise/pages#loading", id: 'cld-1f47d5s4') expect(get("/loading/bla.mcube.co")).to route_to("mno_enterprise/pages#loading", id: 'bla.mcube.co') end it 'routes to #app_access_unauthorized' do expect(get("/app_access_unauthorized")).to route_to("mno_enterprise/pages#app_access_unauthorized") end it 'routes to #billing_details_required' do expect(get("/billing_details_required")).to route_to("mno_enterprise/pages#billing_details_required") end it 'routes to #app_logout' do expect(get("/app_logout")).to route_to("mno_enterprise/pages#app_logout") end it 'routes to #terms' do expect(get("/terms")).to route_to("mno_enterprise/pages#terms") end it 'routes to #error' do expect(get("/errors/503")).to route_to("mno_enterprise/pages#error", error_code: '503') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mno-enterprise-api-3.4.0 | spec/routing/mno_enterprise/pages_controller_routing_spec.rb |
mno-enterprise-api-3.3.3 | spec/routing/mno_enterprise/pages_controller_routing_spec.rb |