Sha256: f29a574594a48bb771b2dc73f50ee2bd9f0ae1eeca043f139230dbdd8499cdf4
Contents?: true
Size: 888 Bytes
Versions: 6
Compression:
Stored size: 888 Bytes
Contents
require 'spec_helper' describe Slacken::Filters::GroupIndent, dsl: true do describe '#valid?' do subject { described_class.new.valid?(component) } context 'when a indented list component is given' do let(:component) do c(:ul, c(:li, text('List Heading'), c(:indent, text('List Content1'), c(:span, text('List Content2'), text('List Content3')) ))) end it { is_expected.to be_truthy } end context 'when a indented list where child component is not indented is given' do let(:component) do c(:ul, c(:li, text('List Heading'), c(:span, text('List Content1'), c(:span, text('List Content2'), text('List Content3')) ))) end it { is_expected.to be_falsey } end end end
Version data entries
6 entries across 6 versions & 1 rubygems