Merge branch 'master' of https://github.com/fetsite/fetsite
Conflicts: app/views/layouts/menu.html.erb config/routes.rb
This commit is contained in:
35
spec/routing/calendars_routing_spec.rb
Normal file
35
spec/routing/calendars_routing_spec.rb
Normal file
@@ -0,0 +1,35 @@
|
||||
require "spec_helper"
|
||||
|
||||
describe CalendarsController do
|
||||
describe "routing" do
|
||||
|
||||
it "routes to #index" do
|
||||
get("/calendars").should route_to("calendars#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
get("/calendars/new").should route_to("calendars#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
get("/calendars/1").should route_to("calendars#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
get("/calendars/1/edit").should route_to("calendars#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
post("/calendars").should route_to("calendars#create")
|
||||
end
|
||||
|
||||
it "routes to #update" do
|
||||
put("/calendars/1").should route_to("calendars#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #destroy" do
|
||||
delete("/calendars/1").should route_to("calendars#destroy", :id => "1")
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
35
spec/routing/calentries_routing_spec.rb
Normal file
35
spec/routing/calentries_routing_spec.rb
Normal file
@@ -0,0 +1,35 @@
|
||||
require "spec_helper"
|
||||
|
||||
describe CalentriesController do
|
||||
describe "routing" do
|
||||
|
||||
it "routes to #index" do
|
||||
get("/calentries").should route_to("calentries#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
get("/calentries/new").should route_to("calentries#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
get("/calentries/1").should route_to("calentries#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
get("/calentries/1/edit").should route_to("calentries#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
post("/calentries").should route_to("calentries#create")
|
||||
end
|
||||
|
||||
it "routes to #update" do
|
||||
put("/calentries/1").should route_to("calentries#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #destroy" do
|
||||
delete("/calentries/1").should route_to("calentries#destroy", :id => "1")
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user