Sha256: 5a22af71f7f6c8c50a864ca9b9ea9d9bd60bb98cb218caf5cf40ef1351ce6764

Contents?: true

Size: 679 Bytes

Versions: 30

Compression:

Stored size: 679 Bytes

Contents

require "rails_helper"

module MnoEnterprise
  RSpec.describe DeletionRequestsController, type: :routing do
    routes { MnoEnterprise::Engine.routes }

    it "routes to #show" do
      expect(get("/deletion_requests/1")).to route_to("mno_enterprise/deletion_requests#show", id: '1')
    end

    it "routes to #freeze_account" do
      expect(patch("/deletion_requests/1/freeze_account")).to route_to("mno_enterprise/deletion_requests#freeze_account", id: '1')
    end

    it 'routes to #checkout' do
      expect(patch("/deletion_requests/1/checkout")).to route_to("mno_enterprise/deletion_requests#checkout", id: '1')
    end
    it 'routes to #terminate_account'
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mno-enterprise-api-3.4.0 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.3.3 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.3.2 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.2.1 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.3.1 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.3.0 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.2.0 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.1.4 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.0.7 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-2.0.9 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.1.3 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.0.6 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-2.0.8 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.1.2 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.0.5 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-2.0.7 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-2.0.6 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-2.0.5 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.1.1 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.0.4 spec/routing/mno_enterprise/deletion_requests_controller_routing_spec.rb