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