Sha256: 1839bd8e55579bae48081de35f44e758ad45dfa454b69d493eb06d18dfe592ef

Contents?: true

Size: 1.31 KB

Versions: 36

Compression:

Stored size: 1.31 KB

Contents

require "spec_helper"

describe AgentRelationshipsController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
enju_biblio-0.2.0.beta.3 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.2.0.beta.2 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.2.0.beta.1 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.3 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.2 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.1 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0.pre71 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0.pre70 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0.pre69 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0.pre68 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0.pre67 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0.pre66 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0.pre65 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0.pre64 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0.pre63 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0.pre62 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0.pre61 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0.pre60 spec/routing/agent_relationships_routing_spec.rb
enju_biblio-0.1.0.pre59 spec/routing/agent_relationships_routing_spec.rb