debian-mirror-gitlab/spec/lib/banzai/pipeline/broadcast_message_pipeline_spec.rb

24 lines
480 B
Ruby
Raw Normal View History

2020-01-01 13:55:28 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe Banzai::Pipeline::BroadcastMessagePipeline do
2020-01-01 13:55:28 +05:30
before do
stub_commonmark_sourcepos_disabled
end
subject { described_class.to_html(exp, project: spy) }
context "allows `a` elements" do
let(:exp) { "<a>Link</a>" }
it { is_expected.to eq("<p>#{exp}</p>") }
end
context "allows `br` elements" do
let(:exp) { "Hello<br>World" }
it { is_expected.to eq("<p>#{exp}</p>") }
end
end