./bin/rails importmap:install
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "articles/show", type: :view do
|
||||
before(:each) do
|
||||
@article = assign(:article, Article.create!(
|
||||
title: "Title",
|
||||
text: "MyText"
|
||||
))
|
||||
end
|
||||
|
||||
it "renders attributes in <p>" do
|
||||
render
|
||||
expect(rendered).to match(/Title/)
|
||||
expect(rendered).to match(/MyText/)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user