Sha256: 6632071f0c91933533bbd5bb61f3d1a928ff727c5b77485637f389fd9f84b1c5
Contents?: true
Size: 621 Bytes
Versions: 7
Compression:
Stored size: 621 Bytes
Contents
require 'spec_helper' describe Kuhsaft::VideoBrick, type: :model do let :video_brick do Kuhsaft::VideoBrick.new end describe '#valid' do before do video_brick.valid? end context 'without any video source' do it 'has en error' do expect(video_brick.errors[:any_source].count).to eq(1) end end end describe '#bricks' do it 'can not have childs' do expect(video_brick).not_to respond_to(:bricks) end end describe '#user_can_add_childs?' do it 'returns false' do expect(video_brick.user_can_add_childs?).to be_falsey end end end
Version data entries
7 entries across 7 versions & 1 rubygems