Sha256: 273ec5c14542750b73a44c2cfb7d3759c2636351aeceb140f682a779c82a111a

Contents?: true

Size: 535 Bytes

Versions: 41

Compression:

Stored size: 535 Bytes

Contents

require 'spec_helper'

describe Kuhsaft::AnchorBrick do

  let :anchor_brick do
    Kuhsaft::AnchorBrick.new(:caption => 'test-anchor')
  end

  describe '#bricks' do
    it 'can not have childs' do
      anchor_brick.should_not respond_to(:bricks)
    end
  end

  describe '#user_can_add_childs?' do
    it 'returns false' do
      anchor_brick.user_can_add_childs?.should be_false
    end
  end

  describe '#to_id' do
    it 'returns a parameterized id' do
      anchor_brick.to_id.should == 'anchor-test-anchor'
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
kuhsaft-1.7.0 spec/models/anchor_brick_spec.rb
kuhsaft-1.6.0 spec/models/anchor_brick_spec.rb
kuhsaft-1.5.0 spec/models/anchor_brick_spec.rb
kuhsaft-1.4.3 spec/models/anchor_brick_spec.rb
kuhsaft-1.4.2 spec/models/anchor_brick_spec.rb
kuhsaft-1.4.1 spec/models/anchor_brick_spec.rb
kuhsaft-1.4.0 spec/models/anchor_brick_spec.rb
kuhsaft-1.3.1 spec/models/anchor_brick_spec.rb
kuhsaft-1.2.15 spec/models/anchor_brick_spec.rb
kuhsaft-1.2.14 spec/models/anchor_brick_spec.rb
kuhsaft-1.2.13 spec/models/anchor_brick_spec.rb
kuhsaft-1.2.12 spec/models/anchor_brick_spec.rb
kuhsaft-1.2.11 spec/models/anchor_brick_spec.rb
kuhsaft-1.2.10 spec/models/anchor_brick_spec.rb
kuhsaft-1.2.9 spec/models/anchor_brick_spec.rb
kuhsaft-1.2.8 spec/models/anchor_brick_spec.rb
kuhsaft-1.2.7 spec/models/anchor_brick_spec.rb
kuhsaft-1.2.6 spec/models/anchor_brick_spec.rb
kuhsaft-1.2.5 spec/models/anchor_brick_spec.rb
kuhsaft-1.2.4 spec/models/anchor_brick_spec.rb