Sha256: af9bd3ac7bca1e0734b0606fb47067eb93ecbe1e3691a0c048ad56fae7b3abe0
Contents?: true
Size: 776 Bytes
Versions: 6
Compression:
Stored size: 776 Bytes
Contents
require 'spec_helper' describe Slacken::Filters::GroupInlines, dsl: true do describe '#valid?' do subject { described_class.new.valid?(component) } context 'when a grouped component is given' do let(:component) do c(:div, c(:wrapper, text('hello world!'), text('another'))) end it { is_expected.to be_truthy } end context 'when a component whose inline components are exposed is given' do let(:component) do c(:div, text(''), c(:div), c(:span)) end it { is_expected.to be_falsey } end context 'when a component with only block components is given' do let(:component) do c(:div, c(:div), c(:img), c(:p, c(:h1))) end it { is_expected.to be_truthy } end end end
Version data entries
6 entries across 6 versions & 1 rubygems