RSpec.describe ChampHelper, type: :helper do describe "#html_formatted_description" do subject { html_formatted_description(description) } context "with some simple texte" do let(:description) { "1er ligne \n 2ieme ligne" } it { is_expected.to eq("
1er ligne \n
2ieme ligne
bad
') } end end end