Sha256: 4fcfc396c68e01063be41482b1acf3882c47f55422ef79c8647166ef853e9d78

Contents?: true

Size: 858 Bytes

Versions: 56

Compression:

Stored size: 858 Bytes

Contents

require 'spec_helper'

describe Kuhsaft::AccordionBrick do

  let :accordion_brick do
    Kuhsaft::AccordionBrick.new
  end

  describe '#user_can_delete?' do
    it 'returns true' do
      accordion_brick.user_can_delete?.should be_true
    end
  end

  describe '#renders_own_childs?' do
    it 'returns false' do
      accordion_brick.renders_own_childs?.should be_false
    end
  end

  describe '#bricks' do
    it 'can have childs' do
      accordion_brick.should respond_to(:bricks)
    end
  end

  describe '#to_style_class' do
    it 'includes the bootstrap classname' do
      accordion_brick.to_style_class.should == 'kuhsaft-accordion-brick accordion'
    end
  end

  describe '#allowed_brick_types' do
    it 'only allows AccordionItems' do
      accordion_brick.allowed_brick_types.should == %w(Kuhsaft::AccordionItemBrick)
    end
  end
end

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
kuhsaft-2.1.1 spec/models/accordion_brick_spec.rb
kuhsaft-2.1.0 spec/models/accordion_brick_spec.rb
kuhsaft-1.8.6 spec/models/accordion_brick_spec.rb
kuhsaft-1.8.5 spec/models/accordion_brick_spec.rb
kuhsaft-2.0.3 spec/models/accordion_brick_spec.rb
kuhsaft-2.0.2 spec/models/accordion_brick_spec.rb
kuhsaft-1.8.4 spec/models/accordion_brick_spec.rb
kuhsaft-1.8.1 spec/models/accordion_brick_spec.rb
kuhsaft-2.0.1 spec/models/accordion_brick_spec.rb
kuhsaft-2.0.0 spec/models/accordion_brick_spec.rb
kuhsaft-1.8.0 spec/models/accordion_brick_spec.rb
kuhsaft-1.7.1 spec/models/accordion_brick_spec.rb
kuhsaft-1.7.0 spec/models/accordion_brick_spec.rb
kuhsaft-1.6.0 spec/models/accordion_brick_spec.rb
kuhsaft-1.5.0 spec/models/accordion_brick_spec.rb
kuhsaft-1.4.3 spec/models/accordion_brick_spec.rb
kuhsaft-1.4.2 spec/models/accordion_brick_spec.rb
kuhsaft-1.4.1 spec/models/accordion_brick_spec.rb
kuhsaft-1.4.0 spec/models/accordion_brick_spec.rb
kuhsaft-1.3.1 spec/models/accordion_brick_spec.rb