summaryrefslogtreecommitdiff
path: root/spec/routing/alerts_routing_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/routing/alerts_routing_spec.rb')
-rw-r--r--spec/routing/alerts_routing_spec.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/spec/routing/alerts_routing_spec.rb b/spec/routing/alerts_routing_spec.rb
new file mode 100644
index 0000000..9485907
--- /dev/null
+++ b/spec/routing/alerts_routing_spec.rb
@@ -0,0 +1,35 @@
+require "spec_helper"
+
+describe AlertsController do
+ describe "routing" do
+
+ it "routes to #index" do
+ get("/alerts").should route_to("alerts#index")
+ end
+
+ it "routes to #new" do
+ get("/alerts/new").should route_to("alerts#new")
+ end
+
+ it "routes to #show" do
+ get("/alerts/1").should route_to("alerts#show", :id => "1")
+ end
+
+ it "routes to #edit" do
+ get("/alerts/1/edit").should route_to("alerts#edit", :id => "1")
+ end
+
+ it "routes to #create" do
+ post("/alerts").should route_to("alerts#create")
+ end
+
+ it "routes to #update" do
+ put("/alerts/1").should route_to("alerts#update", :id => "1")
+ end
+
+ it "routes to #destroy" do
+ delete("/alerts/1").should route_to("alerts#destroy", :id => "1")
+ end
+
+ end
+end