Sha256: 1760779964dab8ac126bf72316ce79a89af24911b52c83a566baf9a227b916d0

Contents?: true

Size: 1.5 KB

Versions: 64

Compression:

Stored size: 1.5 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

64 entries across 64 versions & 1 rubygems

Version Path
dorsale-3.8.1 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.8.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.7.8 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.7.7 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.7.6 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.7.5 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.7.4 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.7.2 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.7.1 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.7.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.6.1 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.6.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.5.2 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.5.1 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.5.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.4.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.3.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.2.0 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.1.7 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
dorsale-3.1.6 spec/routing/dorsale/billing_machine/quotations_routing_spec.rb