Sha256: 8b0abea1a6584acf07e9b4051d77908ebe344729004bec6107e39861b3109c61

Contents?: true

Size: 882 Bytes

Versions: 35

Compression:

Stored size: 882 Bytes

Contents

require "rails_helper"

RSpec.describe Dorsale::Alexandrie::AttachmentsController, type: :routing do
  routes { Dorsale::Engine.routes }

  describe "routing" do
    it "#create" do
      expect(get "/alexandrie/attachments").to \
      route_to("dorsale/alexandrie/attachments#index")
    end

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

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

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

    it "#destroy" do
      expect(delete "/alexandrie/attachments/3").to \
      route_to("dorsale/alexandrie/attachments#destroy", id: "3")
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

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