Sha256: aced05452dd0376ce2f90c48a46c1d70e507edf3777fce006bdf1279cb12e321
Contents?: true
Size: 710 Bytes
Versions: 7
Compression:
Stored size: 710 Bytes
Contents
require 'spec_helper' describe Kuhsaft::TextBrick, type: :model do let :text_brick do Kuhsaft::TextBrick.new end describe '#bricks' do it 'can not have childs' do expect(text_brick).not_to respond_to(:bricks) end end describe '#user_can_add_childs?' do it 'returns false' do expect(text_brick.user_can_add_childs?).to be_falsey end end describe '#collect_fulltext' do before do text_brick.text = '<div><b>foo</b> <b>bar</b></div>' text_brick.read_more_text = '<div><span>foo</span><span>bar</span></div>' end it 'sanitizes text and read_more_text' do expect(text_brick.collect_fulltext).to eq('foo bar foobar') end end end
Version data entries
7 entries across 7 versions & 1 rubygems