Sha256: 98347f56c4901d492cee193e8e45914e8ece3fb38249225d14ee0375deeebce0

Contents?: true

Size: 612 Bytes

Versions: 1

Compression:

Stored size: 612 Bytes

Contents

require 'spec_helper'

module Slacken
  describe DocumentComponent do
    describe '#normalize' do
      subject { DomContainer.parse_html(source).to_component.normalize }
      let(:source) { fixture('example.html') }

      it { is_expected.to have_no_blanks }
      it { is_expected.to have_no_invalid_links }
      it { is_expected.to have_no_line_breaks }
      it { is_expected.to be_indent_grouped }
      it { is_expected.to be_inlines_grouped }
      it { is_expected.to be_sanitized }
      it { is_expected.to be_emoji_stringfied }
      it { is_expected.to be_checkbox_stringfied }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slacken-0.1.0 spec/slacken/document_component_spec.rb