Sha256: 64dc899b8aaa3fdb4621fa7d694d49ee9728bcfda24a3d19a96d9a19b394a7ff

Contents?: true

Size: 1.15 KB

Versions: 5

Compression:

Stored size: 1.15 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

5 entries across 5 versions & 1 rubygems

Version Path
enju_leaf-1.1.0.rc17 spec/routing/profiles_routing_spec.rb
enju_leaf-1.1.0.rc16 spec/routing/profiles_routing_spec.rb
enju_leaf-1.1.0.rc15 spec/routing/profiles_routing_spec.rb
enju_leaf-1.1.0.rc14 spec/routing/profiles_routing_spec.rb
enju_leaf-1.1.0.rc13 spec/routing/profiles_routing_spec.rb