Sha256: 53699ced27e5d6e9b002a5e503c0c0e32c09ca175f22eab32340bdc5f13e06ff

Contents?: true

Size: 886 Bytes

Versions: 27

Compression:

Stored size: 886 Bytes

Contents

require 'rails_helper'

describe ProduceTypesController do
  describe "routing" do

    it "routes to #index" do
      get("/produce_types").should route_to("produce_types#index")
    end

    it "routes to #new" do
      get("/produce_types/new").should route_to("produce_types#new")
    end

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

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

    it "routes to #create" do
      post("/produce_types").should route_to("produce_types#create")
    end

    it "routes to #update" do
      put("/produce_types/1").should route_to("produce_types#update", id: "1")
    end

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

  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
enju_biblio-0.3.18 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.17 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.16 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.15 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.14 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.13 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.12 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.11 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.10 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.10.rc.3 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.10.rc.2 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.10.rc.1 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.9 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.4.0.rc.1 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.8 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.7 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.6 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.4.0.beta.2 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.4.0.beta.1 spec/routing/produce_types_routing_spec.rb
enju_biblio-0.3.5 spec/routing/produce_types_routing_spec.rb