migrate from turbolinks to turbo
This commit is contained in:
19
spec/views/rp_worlds/index.html.erb_spec.rb
Normal file
19
spec/views/rp_worlds/index.html.erb_spec.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "rp_worlds/index", type: :view do
|
||||
before(:each) do
|
||||
assign(:rp_worlds, [
|
||||
RpWorld.create!(
|
||||
name: "Name"
|
||||
),
|
||||
RpWorld.create!(
|
||||
name: "Name"
|
||||
)
|
||||
])
|
||||
end
|
||||
|
||||
it "renders a list of rp_worlds" do
|
||||
render
|
||||
assert_select "tr>td", text: "Name".to_s, count: 2
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user