Sha256: bdefed4a070866956e4204fc4b0844a9978bce901f6878535e696b9572c374c2

Contents?: true

Size: 691 Bytes

Versions: 6

Compression:

Stored size: 691 Bytes

Contents

require_relative '../../../test_helper'
require_relative '../../../../lib/vedeu/models/presentation'

module Vedeu
  class TestPresentation
    include Presentation
  end

  describe Presentation do
    let(:presentation) {
      TestPresentation.new({
        colour: {
          foreground: '#ff0000',
          background: '#333333'
        },
        style: ['bold', 'underline']
      })
    }

    describe '#colour' do
      it 'returns a Colour instance' do
        presentation.colour.must_be_instance_of(Colour)
      end
    end

    describe '#style' do
      it 'has a style attribute' do
        presentation.style.must_equal(['bold', 'underline'])
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vedeu-0.0.39 test/lib/vedeu/models/presentation_test.rb
vedeu-0.0.38 test/lib/vedeu/models/presentation_test.rb
vedeu-0.0.37 test/lib/vedeu/models/presentation_test.rb
vedeu-0.0.36 test/lib/vedeu/models/presentation_test.rb
vedeu-0.0.35 test/lib/vedeu/models/presentation_test.rb
vedeu-0.0.34 test/lib/vedeu/models/presentation_test.rb