Sha256: ab6605a100b046374ce8f9998e88843919ad2c7ee1bab7c56f6cc357e103c1fd

Contents?: true

Size: 1.11 KB

Versions: 34

Compression:

Stored size: 1.11 KB

Contents

require "rails_helper"

describe ::Dorsale::CustomerVault::ActivityTypesController do
  routes { ::Dorsale::Engine.routes }

  describe "routing" do
    it "#index" do
      expect(get "/customer_vault/activity_types").to \
        route_to("dorsale/customer_vault/activity_types#index")
    end

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

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

    it "#show" do
      expect(get "/customer_vault/activity_types/3").to_not be_routable
    end

    it "#edit" do
      expect(get "/customer_vault/activity_types/3/edit").to \
        route_to("dorsale/customer_vault/activity_types#edit", id: "3")
    end

    it "#update" do
      expect(patch "/customer_vault/activity_types/3").to \
        route_to("dorsale/customer_vault/activity_types#update", id: "3")
    end

    it "#destroy" do
      expect(delete "/customer_vault/activity_types/3").to_not be_routable
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

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