Sha256: 905ea1d9f19e86dc593dba99c0822997d2f7548c57b8f76121332ee25daa3310

Contents?: true

Size: 600 Bytes

Versions: 56

Compression:

Stored size: 600 Bytes

Contents

require 'spec_helper'

describe Kuhsaft::SliderBrick do

  let :slider_brick do
    Kuhsaft::SliderBrick.new
  end

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

  describe '#to_style_class' do
    it 'includes the bootstrap styles' do
      slider_brick.to_style_class.should == 'kuhsaft-slider-brick carousel slide'
    end
  end

  describe '#allowed_brick_types' do
    it 'only allows ImageBricks and VideoBricks' do
      slider_brick.allowed_brick_types.should == %w(Kuhsaft::ImageBrick Kuhsaft::VideoBrick)
    end
  end
end

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
kuhsaft-1.2.15 spec/models/slider_brick_spec.rb
kuhsaft-1.2.14 spec/models/slider_brick_spec.rb
kuhsaft-1.2.13 spec/models/slider_brick_spec.rb
kuhsaft-1.2.12 spec/models/slider_brick_spec.rb
kuhsaft-1.2.11 spec/models/slider_brick_spec.rb
kuhsaft-1.2.10 spec/models/slider_brick_spec.rb
kuhsaft-1.2.9 spec/models/slider_brick_spec.rb
kuhsaft-1.2.8 spec/models/slider_brick_spec.rb
kuhsaft-1.2.7 spec/models/slider_brick_spec.rb
kuhsaft-1.2.6 spec/models/slider_brick_spec.rb
kuhsaft-1.2.5 spec/models/slider_brick_spec.rb
kuhsaft-1.2.4 spec/models/slider_brick_spec.rb
kuhsaft-1.2.3 spec/models/slider_brick_spec.rb
kuhsaft-1.2.2 spec/models/slider_brick_spec.rb
kuhsaft-1.2.1 spec/models/slider_brick_spec.rb
kuhsaft-1.2.0 spec/models/slider_brick_spec.rb