Sha256: 7eca1e62ed1a8914d1929b5aff93b8ff699869bdd4a4f5a39280ff029c75450d

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

require 'test_helper'
require 'vedeu/parsing/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)
        Persistence
          .query('Compositor.enqueue_1').dequeue
          .must_match(/bd459118e6175689e4394e242debc2ae/)
        Persistence
          .query('Compositor.enqueue_2').dequeue
          .must_match(/837acb2cb2ea3ef359257851142a7830/)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.0.41 test/lib/vedeu/parsing/compositor_test.rb
vedeu-0.0.40 test/lib/vedeu/parsing/compositor_test.rb