Sha256: abd67ea331618a22d49683626dd17b94faed9f9ff048804d2468170c414a945e

Contents?: true

Size: 892 Bytes

Versions: 34

Compression:

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

34 entries across 34 versions & 1 rubygems

Version Path
dorsale-3.12.0 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.11.0 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.10.3 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.10.2 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.10.1 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.10.0 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.9.8 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.9.7 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.9.6 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.9.5 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.9.4 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.9.3 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.9.2 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.9.1 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb