Sha256: 83128348a318bd3f396b19ee34f4e4eae1d85b7cb8741bcff7542bc216801213

Contents?: true

Size: 592 Bytes

Versions: 56

Compression:

Stored size: 592 Bytes

Contents

require 'spec_helper'

describe Kuhsaft::VideoBrick 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
        video_brick.should have(1).error_on(:any_source)
      end
    end
  end

  describe '#bricks' do
    it 'can not have childs' do
      video_brick.should_not respond_to(:bricks)
    end
  end

  describe '#user_can_add_childs?' do
    it 'returns false' do
      video_brick.user_can_add_childs?.should be_false
    end
  end
end

Version data entries

56 entries across 56 versions & 2 rubygems

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