migrate from turbolinks to turbo

This commit is contained in:
2021-06-21 20:54:17 +02:00
parent 62464846a3
commit 87c1c67b5c
19 changed files with 367 additions and 40 deletions

View 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