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,18 @@
require 'rails_helper'
RSpec.describe "rp_worlds/new", type: :view do
before(:each) do
assign(:rp_world, RpWorld.new(
name: "MyString"
))
end
it "renders new rp_world form" do
render
assert_select "form[action=?][method=?]", rp_worlds_path, "post" do
assert_select "input[name=?]", "rp_world[name]"
end
end
end