Sha256: 6b82525e07394a633d7fc1ba6d6e2d8c688f8ad7bb610d96550b3ef441bf0989
Contents?: true
Size: 519 Bytes
Versions: 16
Compression:
Stored size: 519 Bytes
Contents
# frozen_string_literal: true require "spec_helper" module Decidim module Meetings describe MeetingsHelper do describe "meeting_description" do it "truncates meeting description respecting the html tags" do meeting = create(:meeting, description: { "en" => "<p>This is a long description with some <b>bold text</b></p>" }) expect(helper.meeting_description(meeting, 40)).to match("<p>This is a long description with some <b>bol</b>...") end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems