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-2.1.1 spec/models/video_brick_spec.rb
kuhsaft-2.1.0 spec/models/video_brick_spec.rb
kuhsaft-1.8.6 spec/models/video_brick_spec.rb
kuhsaft-1.8.5 spec/models/video_brick_spec.rb
kuhsaft-2.0.3 spec/models/video_brick_spec.rb
kuhsaft-2.0.2 spec/models/video_brick_spec.rb
kuhsaft-1.8.4 spec/models/video_brick_spec.rb
kuhsaft-1.8.1 spec/models/video_brick_spec.rb
kuhsaft-2.0.1 spec/models/video_brick_spec.rb
kuhsaft-2.0.0 spec/models/video_brick_spec.rb
kuhsaft-1.8.0 spec/models/video_brick_spec.rb
kuhsaft-1.7.1 spec/models/video_brick_spec.rb
kuhsaft-1.7.0 spec/models/video_brick_spec.rb
kuhsaft-1.6.0 spec/models/video_brick_spec.rb
kuhsaft-1.5.0 spec/models/video_brick_spec.rb
kuhsaft-1.4.3 spec/models/video_brick_spec.rb
kuhsaft-1.4.2 spec/models/video_brick_spec.rb
kuhsaft-1.4.1 spec/models/video_brick_spec.rb
kuhsaft-1.4.0 spec/models/video_brick_spec.rb
kuhsaft-1.3.1 spec/models/video_brick_spec.rb