Sha256: c4f381cf204f5ba8bad44f45814372ada11360f6eff6fbbd72725466e1e5a314
Contents?: true
Size: 557 Bytes
Versions: 16
Compression:
Stored size: 557 Bytes
Contents
require 'spec_helper' describe Qbrick::AnchorBrick, type: :model do let :anchor_brick do Qbrick::AnchorBrick.new(caption: 'test-anchor') end describe '#bricks' do it 'can not have childs' do expect(anchor_brick).not_to respond_to(:bricks) end end describe '#user_can_add_childs?' do it 'returns false' do expect(anchor_brick.user_can_add_childs?).to be_falsey end end describe '#to_id' do it 'returns a parameterized id' do expect(anchor_brick.to_id).to eq('anchor-test-anchor') end end end
Version data entries
16 entries across 16 versions & 1 rubygems