Sha256: 8abc5fb7460ad0535d639b92e1347bd61fd78c954d8bc7d435c9690d573a0f92

Contents?: true

Size: 1.2 KB

Versions: 12

Compression:

Stored size: 1.2 KB

Contents

require "rails_helper"

RSpec.describe ItemCustomPropertiesController, type: :routing do
  describe "routing" do
    it "routes to #index" do
      expect(get: "/item_custom_properties").to route_to("item_custom_properties#index")
    end

    it "routes to #new" do
      expect(get: "/item_custom_properties/new").to route_to("item_custom_properties#new")
    end

    it "routes to #show" do
      expect(get: "/item_custom_properties/1").to route_to("item_custom_properties#show", id: "1")
    end

    it "routes to #edit" do
      expect(get: "/item_custom_properties/1/edit").to route_to("item_custom_properties#edit", id: "1")
    end


    it "routes to #create" do
      expect(post: "/item_custom_properties").to route_to("item_custom_properties#create")
    end

    it "routes to #update via PUT" do
      expect(put: "/item_custom_properties/1").to route_to("item_custom_properties#update", id: "1")
    end

    it "routes to #update via PATCH" do
      expect(patch: "/item_custom_properties/1").to route_to("item_custom_properties#update", id: "1")
    end

    it "routes to #destroy" do
      expect(delete: "/item_custom_properties/1").to route_to("item_custom_properties#destroy", id: "1")
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
enju_biblio-0.3.18 spec/routing/item_custom_properties_routing_spec.rb
enju_biblio-0.3.17 spec/routing/item_custom_properties_routing_spec.rb
enju_biblio-0.3.16 spec/routing/item_custom_properties_routing_spec.rb
enju_biblio-0.3.15 spec/routing/item_custom_properties_routing_spec.rb
enju_biblio-0.3.14 spec/routing/item_custom_properties_routing_spec.rb
enju_biblio-0.3.13 spec/routing/item_custom_properties_routing_spec.rb
enju_biblio-0.3.12 spec/routing/item_custom_properties_routing_spec.rb
enju_biblio-0.3.11 spec/routing/item_custom_properties_routing_spec.rb
enju_biblio-0.3.10 spec/routing/item_custom_properties_routing_spec.rb
enju_biblio-0.3.10.rc.3 spec/routing/item_custom_properties_routing_spec.rb
enju_biblio-0.3.10.rc.2 spec/routing/item_custom_properties_routing_spec.rb
enju_biblio-0.3.10.rc.1 spec/routing/item_custom_properties_routing_spec.rb