migrate from turbolinks to turbo
This commit is contained in:
38
spec/routing/rp_worlds_routing_spec.rb
Normal file
38
spec/routing/rp_worlds_routing_spec.rb
Normal file
@@ -0,0 +1,38 @@
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe RpWorldsController, type: :routing do
|
||||
describe "routing" do
|
||||
it "routes to #index" do
|
||||
expect(get: "/rp_worlds").to route_to("rp_worlds#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
expect(get: "/rp_worlds/new").to route_to("rp_worlds#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
expect(get: "/rp_worlds/1").to route_to("rp_worlds#show", id: "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
expect(get: "/rp_worlds/1/edit").to route_to("rp_worlds#edit", id: "1")
|
||||
end
|
||||
|
||||
|
||||
it "routes to #create" do
|
||||
expect(post: "/rp_worlds").to route_to("rp_worlds#create")
|
||||
end
|
||||
|
||||
it "routes to #update via PUT" do
|
||||
expect(put: "/rp_worlds/1").to route_to("rp_worlds#update", id: "1")
|
||||
end
|
||||
|
||||
it "routes to #update via PATCH" do
|
||||
expect(patch: "/rp_worlds/1").to route_to("rp_worlds#update", id: "1")
|
||||
end
|
||||
|
||||
it "routes to #destroy" do
|
||||
expect(delete: "/rp_worlds/1").to route_to("rp_worlds#destroy", id: "1")
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user