Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding enterprises controller routing specs

  • Loading branch information...
commit 63e1972b99a58f7f6e46f93bfab8dffc96ffac75 1 parent e4cc664
@mockdeep mockdeep authored
Showing with 33 additions and 0 deletions.
  1. +33 −0 spec/routing/enterprises_routing_spec.rb
View
33 spec/routing/enterprises_routing_spec.rb
@@ -0,0 +1,33 @@
+require 'spec_helper'
+
+describe EnterprisesController do
+
+ describe "routing" do
+
+ it "routes to #index" do
+ route_for(:controller => "enterprises", :action => "index").should == "/enterprises"
+ end
+
+ it "routes to #show" do
+ route_for(:controller => "enterprises", :action => "show", :id => '5').should == "/enterprises/show/5"
+ end
+
+ it "routes to #new" do
+ route_for(:controller => "enterprises", :action => "new").should == "/enterprises/new"
+ end
+
+ it "routes to #edit" do
+ route_for(:controller => "enterprises", :action => "edit", :id => '5').should == "/enterprises/edit/5"
+ end
+
+ it "routes to #create" do
+ route_for(:controller => "enterprises", :action => "create").should == "/enterprises/create"
+ end
+
+ it "routes to #activate" do
+ route_for(:controller => "enterprises", :action => "activate").should == "/enterprises/activate"
+ end
+
+ end
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.