Sha256: 00dcc6cdec0113491da7b8921519613bf2079595d4e76aebc8884b95308e4828

Contents?: true

Size: 458 Bytes

Versions: 6

Compression:

Stored size: 458 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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kuhsaft-1.1.1 spec/models/video_brick_spec.rb
kuhsaft-1.1.0 spec/models/video_brick_spec.rb
kuhsaft-1.0.3 spec/models/video_brick_spec.rb
kuhsaft-1.0.2 spec/models/video_brick_spec.rb
kuhsaft-1.0.1 spec/models/video_brick_spec.rb
kuhsaft-1.0.0 spec/models/video_brick_spec.rb