Sha256: 0ea2b314dd6d467e1be8717341d0f092e19ea8bc91d60ed73d94096002072764

Contents?: true

Size: 1.01 KB

Versions: 11

Compression:

Stored size: 1.01 KB

Contents

require "rails_helper"

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

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

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

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

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

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

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dorsale-3.9.0 spec/routing/dorsale/customer_vault/origins_routing_spec.rb
dorsale-3.8.1 spec/routing/dorsale/customer_vault/origins_routing_spec.rb
dorsale-3.8.0 spec/routing/dorsale/customer_vault/origins_routing_spec.rb
dorsale-3.7.8 spec/routing/dorsale/customer_vault/origins_routing_spec.rb
dorsale-3.7.7 spec/routing/dorsale/customer_vault/origins_routing_spec.rb
dorsale-3.7.6 spec/routing/dorsale/customer_vault/origins_routing_spec.rb
dorsale-3.7.5 spec/routing/dorsale/customer_vault/origins_routing_spec.rb
dorsale-3.7.4 spec/routing/dorsale/customer_vault/origins_routing_spec.rb
dorsale-3.7.2 spec/routing/dorsale/customer_vault/origins_routing_spec.rb
dorsale-3.7.1 spec/routing/dorsale/customer_vault/origins_routing_spec.rb
dorsale-3.7.0 spec/routing/dorsale/customer_vault/origins_routing_spec.rb