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