New Feature: Themen/Informationen
This commit is contained in:
35
spec/routing/attachments_routing_spec.rb
Normal file
35
spec/routing/attachments_routing_spec.rb
Normal file
@@ -0,0 +1,35 @@
|
||||
require "spec_helper"
|
||||
|
||||
describe AttachmentsController do
|
||||
describe "routing" do
|
||||
|
||||
it "routes to #index" do
|
||||
get("/attachments").should route_to("attachments#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
get("/attachments/new").should route_to("attachments#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
get("/attachments/1").should route_to("attachments#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
get("/attachments/1/edit").should route_to("attachments#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
post("/attachments").should route_to("attachments#create")
|
||||
end
|
||||
|
||||
it "routes to #update" do
|
||||
put("/attachments/1").should route_to("attachments#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #destroy" do
|
||||
delete("/attachments/1").should route_to("attachments#destroy", :id => "1")
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
35
spec/routing/fragen_routing_spec.rb
Normal file
35
spec/routing/fragen_routing_spec.rb
Normal file
@@ -0,0 +1,35 @@
|
||||
require "spec_helper"
|
||||
|
||||
describe FragenController do
|
||||
describe "routing" do
|
||||
|
||||
it "routes to #index" do
|
||||
get("/fragen").should route_to("fragen#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
get("/fragen/new").should route_to("fragen#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
get("/fragen/1").should route_to("fragen#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
get("/fragen/1/edit").should route_to("fragen#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
post("/fragen").should route_to("fragen#create")
|
||||
end
|
||||
|
||||
it "routes to #update" do
|
||||
put("/fragen/1").should route_to("fragen#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #destroy" do
|
||||
delete("/fragen/1").should route_to("fragen#destroy", :id => "1")
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
35
spec/routing/themen_routing_spec.rb
Normal file
35
spec/routing/themen_routing_spec.rb
Normal file
@@ -0,0 +1,35 @@
|
||||
require "spec_helper"
|
||||
|
||||
describe ThemenController do
|
||||
describe "routing" do
|
||||
|
||||
it "routes to #index" do
|
||||
get("/themen").should route_to("themen#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
get("/themen/new").should route_to("themen#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
get("/themen/1").should route_to("themen#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
get("/themen/1/edit").should route_to("themen#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
post("/themen").should route_to("themen#create")
|
||||
end
|
||||
|
||||
it "routes to #update" do
|
||||
put("/themen/1").should route_to("themen#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #destroy" do
|
||||
delete("/themen/1").should route_to("themen#destroy", :id => "1")
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
35
spec/routing/themengruppen_routing_spec.rb
Normal file
35
spec/routing/themengruppen_routing_spec.rb
Normal file
@@ -0,0 +1,35 @@
|
||||
require "spec_helper"
|
||||
|
||||
describe ThemengruppenController do
|
||||
describe "routing" do
|
||||
|
||||
it "routes to #index" do
|
||||
get("/themengruppen").should route_to("themengruppen#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
get("/themengruppen/new").should route_to("themengruppen#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
get("/themengruppen/1").should route_to("themengruppen#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
get("/themengruppen/1/edit").should route_to("themengruppen#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
post("/themengruppen").should route_to("themengruppen#create")
|
||||
end
|
||||
|
||||
it "routes to #update" do
|
||||
put("/themengruppen/1").should route_to("themengruppen#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #destroy" do
|
||||
delete("/themengruppen/1").should route_to("themengruppen#destroy", :id => "1")
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user