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
qbrick-2.5.0.pre spec/models/video_brick_spec.rb
kuhsaft-2.4.3 spec/models/video_brick_spec.rb
kuhsaft-2.4.2 spec/models/video_brick_spec.rb
kuhsaft-2.4.1 spec/models/video_brick_spec.rb
kuhsaft-2.4.0 spec/models/video_brick_spec.rb
kuhsaft-2.3.6 spec/models/video_brick_spec.rb
kuhsaft-2.3.5 spec/models/video_brick_spec.rb
kuhsaft-2.3.4 spec/models/video_brick_spec.rb
kuhsaft-2.3.3 spec/models/video_brick_spec.rb
kuhsaft-2.3.2 spec/models/video_brick_spec.rb
kuhsaft-2.3.1 spec/models/video_brick_spec.rb
kuhsaft-2.3.0 spec/models/video_brick_spec.rb
kuhsaft-2.2.6 spec/models/video_brick_spec.rb
kuhsaft-2.2.5 spec/models/video_brick_spec.rb
kuhsaft-2.2.4 spec/models/video_brick_spec.rb
kuhsaft-2.2.3 spec/models/video_brick_spec.rb
kuhsaft-2.2.2 spec/models/video_brick_spec.rb
kuhsaft-2.2.1 spec/models/video_brick_spec.rb
kuhsaft-2.2.0 spec/models/video_brick_spec.rb
kuhsaft-2.1.2 spec/models/video_brick_spec.rb