mirror of
https://github.com/Growstuff/growstuff.git
synced 2025-12-30 13:07:49 -05:00
* Fix todo * Rubcop * Rubocop * Rubocop * Rename harvests_routing_spec.rb to harvests_controller_routing_spec.rb Making codeclimate happier * Rename for CodeFactor: updates_routing_spec.rb to posts_controller_updates_routing_spec.rb For codefactor * Rename for CodeFactor: follows_routing_spec.rb to follows_controller_routing_spec.rb * Rename for CodeFactor: forums_routing_spec.rb to forums_controller_routing_spec.rb * Rename spec/routing/roles_routing_spec.rb to spec/routing/admin/roles_controller_routing_spec.rb * Rename authentications_routing_spec.rb to authentications_controller_routing_spec.rb * Rename for CodeFactor: plantings_routing_spec.rb to plantings_controller_routing_spec.rb * Rename for CodeFactor: scientific_names_routing_spec.rb to scientific_names_controller_routing_spec.rb * Rename for CodeFactor: seeds_routing_spec.rb to seeds_controller_routing_spec.rb * Rename for CodeFactor: comments_routing_spec.rb to comments_controller_routing_spec.rb * Rename for CodeFactor: garden_types_routing_spec.rb to garden_types_controller_routing_spec.rb * Rename for CodeFactor: admin_routing_spec.rb to admin_controller_routing_spec.rb * Rename for CodeFactor: gardens_routing_spec.rb to gardens_controller_routing_spec.rb * Rename for CodeFactor: photos_routing_spec.rb to photos_controller_routing_spec.rb * Rename for CodeFactor: plant_parts_routing_spec.rb to plant_parts_controller_routing_spec.rb * Rename for CodeFactor: crops_routing_spec.rb to crops_controller_routing_spec.rb * [CodeFactor] Apply fixes * Rename * Code factor bot --------- Co-authored-by: Cesy <cesy.avon@gmail.com> Co-authored-by: codefactor-io <support@codefactor.io>
36 lines
811 B
Ruby
36 lines
811 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "rails_helper"
|
|
|
|
describe ForumsController do
|
|
describe "routing" do
|
|
it "routes to #index" do
|
|
get("/forums").should route_to("forums#index")
|
|
end
|
|
|
|
it "routes to #new" do
|
|
get("/forums/new").should route_to("forums#new")
|
|
end
|
|
|
|
it "routes to #show" do
|
|
get("/forums/1").should route_to("forums#show", id: "1")
|
|
end
|
|
|
|
it "routes to #edit" do
|
|
get("/forums/1/edit").should route_to("forums#edit", id: "1")
|
|
end
|
|
|
|
it "routes to #create" do
|
|
post("/forums").should route_to("forums#create")
|
|
end
|
|
|
|
it "routes to #update" do
|
|
put("/forums/1").should route_to("forums#update", id: "1")
|
|
end
|
|
|
|
it "routes to #destroy" do
|
|
delete("/forums/1").should route_to("forums#destroy", id: "1")
|
|
end
|
|
end
|
|
end
|