Sha256: 22436e9600c21fcc8ef27098d99e5f6d76b72733933450c54ac5279229760693

Contents?: true

Size: 948 Bytes

Versions: 1

Compression:

Stored size: 948 Bytes

Contents

require_relative '../../../../test_helper'

module Vedeu
  module Buffer
    describe Line do
      let(:described_class)    { Line }
      let(:described_instance) { described_class.new(attributes) }
      let(:subject)            { described_instance }
      let(:attributes)         {
        {
          style:      'normal',
          foreground: :red,
          background: :black,
          stream:     []
        }
      }

      it 'returns a Line instance' do
        subject.must_be_instance_of(Line)
      end

      it 'has a style attribute' do
        subject.style.must_be_instance_of(Array)
      end

      it 'has a foreground attribute' do
        subject.foreground.must_be_instance_of(Symbol)
      end

      it 'has a background attribute' do
        subject.background.must_be_instance_of(Symbol)
      end

      it 'has a stream attribute' do
        subject.stream.must_be_instance_of(Array)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.0.23 test/lib/vedeu/output/buffer/line_test.rb