Sha256: e2a60122e959dd1019a20f117a8c62674f2d41ba74fb0c9697ef6d26f3d773d0
Contents?: true
Size: 840 Bytes
Versions: 1
Compression:
Stored size: 840 Bytes
Contents
require 'spec_helper' class Slacken::DocumentComponent describe GroupInlines, dsl: true do describe '#inlines_grouped?' do subject { component.inlines_grouped? } 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slacken-0.1.0 | spec/slacken/document_component/group_inlines_spec.rb |