Sha256: 10112126f475da3f29c966842bff1f6487dbfddb589d87f3c864a58fe2e854fa

Contents?: true

Size: 1.11 KB

Versions: 21

Compression:

Stored size: 1.11 KB

Contents

require "spec_helper"

describe UsersController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
enju_leaf-1.1.0.rc12 spec/routing/users_routing_spec.rb
enju_leaf-1.1.0.rc11 spec/routing/users_routing_spec.rb
enju_leaf-1.1.0.rc10 spec/routing/users_routing_spec.rb
enju_leaf-1.1.0.rc9 spec/routing/users_routing_spec.rb
enju_leaf-1.1.0.rc8 spec/routing/users_routing_spec.rb
enju_leaf-1.1.0.rc7 spec/routing/users_routing_spec.rb
enju_leaf-1.1.0.rc6 spec/routing/users_routing_spec.rb
enju_leaf-1.1.0.rc5 spec/routing/users_routing_spec.rb
enju_leaf-1.1.0.rc4 spec/routing/users_routing_spec.rb
enju_leaf-1.1.0.rc3 spec/routing/users_routing_spec.rb
enju_leaf-1.1.0.rc2 spec/routing/users_routing_spec.rb
enju_leaf-1.1.0.rc1 spec/routing/users_routing_spec.rb
enju_leaf-1.1.0.beta3 spec/routing/users_routing_spec.rb
enju_leaf-1.1.0.pre3 spec/routing/users_routing_spec.rb
echo_base-0.1.3 lib/generators/echo_base/templates/spec/routing/users_routing_spec.rb
echo_base-0.1.2 lib/generators/echo_base/templates/spec/routing/users_routing_spec.rb
echo_base-0.1.1 lib/generators/echo_base/templates/spec/routing/users_routing_spec.rb
echo_base-0.1.0 lib/generators/echo_base/templates/spec/routing/users_routing_spec.rb
echo_base-0.0.4 lib/generators/echo_base/templates/spec/routing/users_routing_spec.rb
echo_base-0.0.3 lib/generators/echo_base/templates/spec/routing/users_routing_spec.rb