Sha256: 84d7af916db28f0f54192c3af369b3ecd4a884048be75fabd34a1b5d643d022a

Contents?: true

Size: 806 Bytes

Versions: 30

Compression:

Stored size: 806 Bytes

Contents

require 'rails_helper'

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

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

    it 'routes to #create' do
      expect(post('/jpi/v1/deletion_requests')).to route_to('mno_enterprise/jpi/v1/deletion_requests#create')
    end

    it 'routes to #resend' do
      expect(put('/jpi/v1/deletion_requests/1/resend')).to route_to('mno_enterprise/jpi/v1/deletion_requests#resend', id: '1')
    end

    it 'routes to #destroy' do
      expect(delete('/jpi/v1/deletion_requests/1')).to route_to('mno_enterprise/jpi/v1/deletion_requests#destroy', id: '1')
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mno-enterprise-api-2.0.4 spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.1.0 spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.0.3 spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-2.0.3 spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.0.2 spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-2.0.2 spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.0.1 spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-2.0.1 spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-3.0.0 spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb
mno-enterprise-api-2.0.0 spec/routing/mno_enterprise/jpi/v1/deletion_requests_controller_routing_spec.rb