Update specs for attribute change and rich text

This commit is contained in:
Ryan W
2021-12-16 14:40:07 -08:00
parent 3a146f7f60
commit d30429045b
4 changed files with 10 additions and 8 deletions
+2 -2
View File
@@ -4,13 +4,13 @@ RSpec.describe "articles/show", type: :view do
before(:each) do
@article = assign(:article, Article.create!(
title: "Title",
text: "MyText"
content: "MyContent"
))
end
it "renders attributes in <p>" do
render
expect(rendered).to match(/Title/)
expect(rendered).to match(/MyText/)
expect(rendered).to match(/MyContent/)
end
end