Sha256: ace05f41cbbe63a21dce33a86d0eeedfa95567b768092d63229e2555cbdfe3ad

Contents?: true

Size: 1.52 KB

Versions: 3

Compression:

Stored size: 1.52 KB

Contents

require "rails_helper"

describe ::Dorsale::BillingMachine::QuotationsController do
  describe "routing" do
    routes { ::Dorsale::Engine.routes }

    it "#index" do
      expect(get "/billing_machine/quotations").to \
        route_to("dorsale/billing_machine/quotations#index")
    end

    it "#new" do
      expect(get "/billing_machine/quotations/new").to \
        route_to("dorsale/billing_machine/quotations#new")
    end

    it "#show" do
      expect(get "/billing_machine/quotations/1").to \
        route_to("dorsale/billing_machine/quotations#show", id: "1")
    end

    it "#edit" do
      expect(get "/billing_machine/quotations/1/edit").to \
        route_to("dorsale/billing_machine/quotations#edit", id: "1")
    end

    it "#create" do
      expect(post "/billing_machine/quotations").to \
        route_to("dorsale/billing_machine/quotations#create")
    end

    it "#update" do
      expect(patch "/billing_machine/quotations/1").to \
        route_to("dorsale/billing_machine/quotations#update", id: "1")
    end

    it "#destroy" do
      expect(delete "/billing_machine/quotations/1").to \
        route_to("dorsale/billing_machine/quotations#destroy", id: "1")
    end

    it "#copy" do
      expect(post "/billing_machine/quotations/1/copy").to \
        route_to("dorsale/billing_machine/quotations#copy", id: "1")
    end

    it "#create_invoice" do
      expect(get "/billing_machine/quotations/1/create_invoice").to \
        route_to("dorsale/billing_machine/quotations#create_invoice", id: "1")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dorsale-3.9.3 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.9.2 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.9.1 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb