Sha256: 98aca8ef67ceaa66eee57171ccf66243c674ebcf8e9bc9f411aae4cacf7a0a35
Contents?: true
Size: 628 Bytes
Versions: 7
Compression:
Stored size: 628 Bytes
Contents
require 'spec_helper' describe Kuhsaft::SliderBrick, type: :model do let :slider_brick do Kuhsaft::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('kuhsaft-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(Kuhsaft::ImageBrick Kuhsaft::VideoBrick)) end end end
Version data entries
7 entries across 7 versions & 1 rubygems