Sha256: 3dbb8bd01b3e28a7c39d634b0b5e2e46e55f7d330bf22c49a62171228ee4bf8c

Contents?: true

Size: 583 Bytes

Versions: 21

Compression:

Stored size: 583 Bytes

Contents

require "spec_helper"

describe AcceptsController do
  describe "routing" do

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

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

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

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

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

  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
enju_library-0.3.11 spec/routing/accepts_routing_spec.rb
enju_library-0.3.10 spec/routing/accepts_routing_spec.rb
enju_library-0.3.9 spec/routing/accepts_routing_spec.rb
enju_library-0.3.8 spec/routing/accepts_routing_spec.rb
enju_library-0.3.8.rc.2 spec/routing/accepts_routing_spec.rb
enju_library-0.3.8.rc.1 spec/routing/accepts_routing_spec.rb
enju_library-0.4.0.rc.1 spec/routing/accepts_routing_spec.rb
enju_library-0.3.7 spec/routing/accepts_routing_spec.rb
enju_library-0.3.6 spec/routing/accepts_routing_spec.rb
enju_library-0.4.0.beta.4 spec/routing/accepts_routing_spec.rb
enju_library-0.4.0.beta.3 spec/routing/accepts_routing_spec.rb
enju_library-0.4.0.beta.2 spec/routing/accepts_routing_spec.rb
enju_library-0.4.0.beta.1 spec/routing/accepts_routing_spec.rb
enju_library-0.3.5 spec/routing/accepts_routing_spec.rb
enju_library-0.3.4 spec/routing/accepts_routing_spec.rb
enju_library-0.3.3 spec/routing/accepts_routing_spec.rb
enju_library-0.3.2 spec/routing/accepts_routing_spec.rb
enju_library-0.3.1 spec/routing/accepts_routing_spec.rb
enju_library-0.3.0 spec/routing/accepts_routing_spec.rb
enju_library-0.3.0.rc.1 spec/routing/accepts_routing_spec.rb