Sha256: 5aafa8d02fc26353793ea0874402240fc5a5cef1d6d93a615ce69069417296b2
Contents?: true
Size: 1.46 KB
Versions: 24
Compression:
Stored size: 1.46 KB
Contents
require "rails_helper" describe ::Dorsale::BillingMachine::InvoicesController, type: :routing do routes { ::Dorsale::Engine.routes } describe "routing" do it "#index" do expect(get "/billing_machine/invoices").to \ route_to("dorsale/billing_machine/invoices#index") end it "#new" do expect(get "/billing_machine/invoices/new").to \ route_to("dorsale/billing_machine/invoices#new") end it "#create" do expect(post "/billing_machine/invoices").to \ route_to("dorsale/billing_machine/invoices#create") end it "#show" do expect(get "/billing_machine/invoices/1").to \ route_to("dorsale/billing_machine/invoices#show", id: "1") end it "#show pdf" do expect(get "/billing_machine/invoices/1.pdf").to \ route_to("dorsale/billing_machine/invoices#show", id: "1", format: "pdf") end it "#pay" do expect(patch "/billing_machine/invoices/1/pay").to \ route_to("dorsale/billing_machine/invoices#pay", id: "1") end it "#copy" do expect(get "/billing_machine/invoices/1/copy").to \ route_to("dorsale/billing_machine/invoices#copy", id: "1") end it "#edit" do expect(get "/billing_machine/invoices/1/edit").to \ route_to("dorsale/billing_machine/invoices#edit", id: "1") end it "#update" do expect(patch "/billing_machine/invoices/1").to \ route_to("dorsale/billing_machine/invoices#update", id: "1") end end end
Version data entries
24 entries across 24 versions & 1 rubygems