Sha256: c565cb2a8e706ff0f7d59167178396e7b3b925ec93d17d5c7852dcd975071860

Contents?: true

Size: 622 Bytes

Versions: 16

Compression:

Stored size: 622 Bytes

Contents

require 'spec_helper'

describe Qbrick::SliderBrick, type: :model do
  let :slider_brick do
    Qbrick::SliderBrick.new
  end

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

  describe '#to_style_class' do
    it 'includes the bootstrap styles' do
      expect(slider_brick.to_style_class).to eq('qbrick-slider-brick carousel slide')
    end
  end

  describe '#allowed_brick_types' do
    it 'only allows ImageBricks and VideoBricks' do
      expect(slider_brick.allowed_brick_types).to eq(%w(Qbrick::ImageBrick Qbrick::VideoBrick))
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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