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-4.0.0 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.20.0 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.19.1 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.19.0 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.18.0 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.17.0 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.16.0 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.15.0 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.14.11 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.14.10 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.14.9 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.14.8 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.14.7 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.14.6 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.14.5 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.14.3 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.14.2 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.14.1 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.14.0 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb
dorsale-3.13.0 spec/routing/dorsale/alexandrie/attachments_routing_spec.rb