Sha256: 7588cb40b01dd670e22c4f454c8374428085f3e956d2b85efd4077815d3a8bd5

Contents?: true

Size: 2 KB

Versions: 31

Compression:

Stored size: 2 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 "#preview" do
      expect(post "/billing_machine/quotations/preview").to \
        route_to("dorsale/billing_machine/quotations#preview")
    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

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

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
dorsale-4.0.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.20.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.19.1 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.19.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.18.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.17.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.16.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.15.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.14.11 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.14.10 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.14.9 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.14.8 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.14.7 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.14.6 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.14.5 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.14.3 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.14.2 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.14.1 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.14.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.13.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb