Sha256: e34497177211e9e6e5e17751476365e7363841cbd75203bef458a2965a3c2f32

Contents?: true

Size: 1.09 KB

Versions: 5

Compression:

Stored size: 1.09 KB

Contents

require_relative '../../../test_helper'
require_relative '../../../../lib/vedeu/support/compositor'

module Vedeu
  describe Compositor do
    describe '.enqueue' do
      it 'enqueues the interfaces for rendering' do
        attributes = {
          interfaces: [
            {
              name: 'Compositor.enqueue_1',
              width: 5,
              height: 5,
              lines: {
                streams: {
                  text: 'bd459118e6175689e4394e242debc2ae'
                }
              }
            }, {
              name: 'Compositor.enqueue_2',
              width: 5,
              height: 5,
              lines: {
                streams: {
                  text: '837acb2cb2ea3ef359257851142a7830'
                }
              }
            }
          ]
        }

        Compositor.enqueue(attributes)
        InterfaceRepository.find('Compositor.enqueue_1').dequeue
          .must_match(/bd459118e6175689e4394e242debc2ae/)
        InterfaceRepository.find('Compositor.enqueue_2').dequeue
          .must_match(/837acb2cb2ea3ef359257851142a7830/)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vedeu-0.0.38 test/lib/vedeu/support/compositor_test.rb
vedeu-0.0.37 test/lib/vedeu/support/compositor_test.rb
vedeu-0.0.36 test/lib/vedeu/support/compositor_test.rb
vedeu-0.0.35 test/lib/vedeu/support/compositor_test.rb
vedeu-0.0.34 test/lib/vedeu/support/compositor_test.rb