Sha256: 4895a6acf5cb9b301b33bf73089634bc836145d4b6369f85135b3cc7a0570186

Contents?: true

Size: 683 Bytes

Versions: 6

Compression:

Stored size: 683 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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kuhsaft-1.1.1 spec/models/accordion_brick_spec.rb
kuhsaft-1.1.0 spec/models/accordion_brick_spec.rb
kuhsaft-1.0.3 spec/models/accordion_brick_spec.rb
kuhsaft-1.0.2 spec/models/accordion_brick_spec.rb
kuhsaft-1.0.1 spec/models/accordion_brick_spec.rb
kuhsaft-1.0.0 spec/models/accordion_brick_spec.rb