Sha256: 4af4e60483fdef062a8cbd5ddf8bef03f881a15d381fce68691327c73e4935c4

Contents?: true

Size: 434 Bytes

Versions: 10

Compression:

Stored size: 434 Bytes

Contents

require "rails_helper"

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

    it "routes to #create" do
      expect(get("/impersonate/user/1")).to route_to("mno_enterprise/impersonate#create", user_id: '1')
    end

    it "routes to #destroy" do
      expect(delete("/impersonate/revert")).to route_to("mno_enterprise/impersonate#destroy")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mno-enterprise-api-2.0.9 spec/routing/mno_enterprise/impersonate_controller_routing.spec.rb
mno-enterprise-api-2.0.8 spec/routing/mno_enterprise/impersonate_controller_routing.spec.rb
mno-enterprise-api-2.0.7 spec/routing/mno_enterprise/impersonate_controller_routing.spec.rb
mno-enterprise-api-2.0.6 spec/routing/mno_enterprise/impersonate_controller_routing.spec.rb
mno-enterprise-api-2.0.5 spec/routing/mno_enterprise/impersonate_controller_routing.spec.rb
mno-enterprise-api-2.0.4 spec/routing/mno_enterprise/impersonate_controller_routing.spec.rb
mno-enterprise-api-2.0.3 spec/routing/mno_enterprise/impersonate_controller_routing.spec.rb
mno-enterprise-api-2.0.2 spec/routing/mno_enterprise/impersonate_controller_routing.spec.rb
mno-enterprise-api-2.0.1 spec/routing/mno_enterprise/impersonate_controller_routing.spec.rb
mno-enterprise-api-2.0.0 spec/routing/mno_enterprise/impersonate_controller_routing.spec.rb