Sha256: aedc4bbfbb1f23c1dccbcf6e0b38f7f23ded03596a8300ab0113cd323d39cb61

Contents?: true

Size: 630 Bytes

Versions: 2

Compression:

Stored size: 630 Bytes

Contents

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

module Vedeu
  class TestPresentation
    include Presentation
  end

  describe Presentation do
    describe '#colour' do
      it 'returns a Colour instance' do
        TestPresentation.new({
          colour: { foreground: '#ff0000', background: '#333333' }
        }).colour.must_be_instance_of(Colour)
      end
    end

    describe '#style' do
      it 'has a style attribute' do
        TestPresentation.new({
          style:  ['bold', 'underline']
        }).style.must_equal("\e[1m\e[4m")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.0.32 test/lib/vedeu/models/presentation_test.rb
vedeu-0.0.31 test/lib/vedeu/models/presentation_test.rb