Sha256: d007d03117f94ed57cbe09bd1c09ba98bc7a5babfd2f270786798c3e39d4dc67
Contents?: true
Size: 1.37 KB
Versions: 9
Compression:
Stored size: 1.37 KB
Contents
# frozen_string_literal: true require 'rails_helper' shared_examples 'content_tag' do # rubocop:disable Metrics/BlockLength context 'with soft return after start tag' do let(:original_content) do <<-HTML <p><span>[</span>#{described_class::TAG_NAME}]юникод</p> <p>some content</p> HTML end it { expect { subject }.to raise_error(Lcms::Engine::DocumentError) } end context 'with soft return before start tag' do let(:original_content) do <<-HTML <p>e234]<span>[</span>#{described_class::TAG_NAME}]</p> <p>some content</p> HTML end it { expect { subject }.to raise_error(Lcms::Engine::DocumentError) } end context 'with soft return before stop tag' do let(:original_content) do <<-HTML <p><span>[</span>#{described_class::TAG_NAME}]</p> <p>some content</p> <p><span>[</span>#{stop_tag}<span>]</span>some content</p> HTML end it { expect { subject }.to raise_error(Lcms::Engine::DocumentError) } end context 'with soft return after stop tag' do let(:original_content) do <<-HTML <p><span>[</span>#{described_class::TAG_NAME}]</p> <p>some content</p> <p>some content<br><span>[</span>#{stop_tag}<span>]</span></p> HTML end it { expect { subject }.to raise_error(Lcms::Engine::DocumentError) } end end
Version data entries
9 entries across 9 versions & 1 rubygems