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

Version Path
qbrick-2.7.1 spec/models/anchor_brick_spec.rb
qbrick-2.7 spec/models/anchor_brick_spec.rb
qbrick-2.6.10 spec/models/anchor_brick_spec.rb
qbrick-2.6.9 spec/models/anchor_brick_spec.rb
qbrick-2.6.8 spec/models/anchor_brick_spec.rb
qbrick-2.6.7 spec/models/anchor_brick_spec.rb
qbrick-2.6.6 spec/models/anchor_brick_spec.rb
qbrick-2.6.5 spec/models/anchor_brick_spec.rb
qbrick-2.6.4 spec/models/anchor_brick_spec.rb
qbrick-2.6.3 spec/models/anchor_brick_spec.rb
qbrick-2.6.2 spec/models/anchor_brick_spec.rb
qbrick-2.6.1 spec/models/anchor_brick_spec.rb
qbrick-2.6.0 spec/models/anchor_brick_spec.rb
qbrick-2.5.2 spec/models/anchor_brick_spec.rb
qbrick-2.5.1 spec/models/anchor_brick_spec.rb
qbrick-2.5.0 spec/models/anchor_brick_spec.rb