require 'rails_helper' RSpec.describe "articles/edit", type: :view do before(:each) do @article = assign(:article, Article.create!( title: "MyString", content: "MyContent" )) end it "renders the edit article form" do render assert_select "form[action=?][method=?]", article_path(@article), "post" do assert_select "input[name=?]", "article[title]" #TODO: with rich_text, this is not a textarea # assert_select "textarea[name=?]", "article[content]" end end end