Sha256: ed1b41da56be38bfc3e3fddcadd78ae426e049d896bc58db4843364b755aa8c3
Contents?: true
Size: 586 Bytes
Versions: 16
Compression:
Stored size: 586 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' describe DocTemplate::Tags::TablePreserveAlignmentTag do let(:node) { Nokogiri::HTML(original_content).at_xpath('*//p') } let(:original_content) do <<-HTML <p><span>[#{described_class::TAG_NAME}]</span></p> <table><tr><td><p style="text-align:#{style}">sfdfdf</p></td></tr></table> HTML end let(:tag) { described_class.new } let(:style) { 'right' } subject { tag.parse(node).content } it 'add css class depends on text align' do expect(subject).to include %(class="text-#{style}") end end
Version data entries
16 entries across 16 versions & 1 rubygems