./bin/rails importmap:install

This commit is contained in:
Ryan W
2021-09-26 15:22:36 -07:00
parent 536a7d88cb
commit bea88d4d33
31 changed files with 484 additions and 19 deletions
@@ -0,0 +1,22 @@
require 'rails_helper'
RSpec.describe "articles/index", type: :view do
before(:each) do
assign(:articles, [
Article.create!(
title: "Title",
text: "MyText"
),
Article.create!(
title: "Title",
text: "MyText"
)
])
end
it "renders a list of articles" do
render
assert_select "tr>td", text: "Title".to_s, count: 2
assert_select "tr>td", text: "MyText".to_s, count: 2
end
end