Sha256: 0b104064e6cef5770893ccc6a99c43d40eb4ff920c51c538df662c9f993d6417

Contents?: true

Size: 1.08 KB

Versions: 39

Compression:

Stored size: 1.08 KB

Contents

require "spec_helper"

describe ProfilesController do
  describe "routing" do

    it "recognizes and generates #index" do
      { get: "/profiles" }.should route_to(controller: "profiles", action: "index")
    end

    it "recognizes and generates #new" do
      { get: "/profiles/new" }.should route_to(controller: "profiles", action: "new")
    end

    it "recognizes and generates #show" do
      { get: "/profiles/1" }.should route_to(controller: "profiles", action: "show", id: "1")
    end

    it "recognizes and generates #edit" do
      { get: "/profiles/1/edit" }.should route_to(controller: "profiles", action: "edit", id: "1")
    end

    it "recognizes and generates #create" do
      { post: "/profiles" }.should route_to(controller: "profiles", action: "create")
    end

    it "recognizes and generates #update" do
      { put: "/profiles/1" }.should route_to(controller: "profiles", action: "update", id: "1")
    end

    it "recognizes and generates #destroy" do
      { delete: "/profiles/1" }.should route_to(controller: "profiles", action: "destroy", id: "1")
    end

  end
end

Version data entries

39 entries across 38 versions & 2 rubygems

Version Path
enju_seed-0.3.6 spec/routing/profiles_routing_spec.rb
enju_seed-0.3.5 spec/routing/profiles_routing_spec.rb
enju_seed-0.4.0.rc.2 spec/routing/profiles_routing_spec.rb
enju_seed-0.3.4 spec/routing/profiles_routing_spec.rb
enju_seed-0.4.0.rc.1 spec/routing/profiles_routing_spec.rb
enju_seed-0.4.0.beta.3 spec/routing/profiles_routing_spec.rb
enju_seed-0.5.0.beta.1 spec/routing/profiles_routing_spec.rb
enju_seed-0.4.0.beta.2 spec/routing/profiles_routing_spec.rb
enju_seed-0.3.3 spec/routing/profiles_routing_spec.rb
enju_seed-0.3.2 spec/routing/profiles_routing_spec.rb
enju_seed-0.3.1 spec/routing/profiles_routing_spec.rb
enju_seed-0.3.0 spec/routing/profiles_routing_spec.rb
enju_seed-0.3.0.rc.1 spec/routing/profiles_routing_spec.rb
enju_seed-0.3.0.beta.7 spec/routing/profiles_routing_spec.rb
enju_seed-0.3.0.beta.6 spec/routing/profiles_routing_spec.rb
enju_seed-0.2.3 spec/routing/profiles_routing_spec.rb
enju_seed-0.2.2 spec/routing/profiles_routing_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.0/spec/routing/profiles_routing_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.1/spec/routing/profiles_routing_spec.rb
enju_seed-0.2.1 spec/routing/profiles_routing_spec.rb