Sha256: b3601725d0beb30a61a1a6512a57000087eee522dd05e17238aea30807d7f534

Contents?: true

Size: 544 Bytes

Versions: 7

Compression:

Stored size: 544 Bytes

Contents

require_relative '../../../test_helper'
require_relative '../../../../lib/vedeu/output/output'
require_relative '../../../../lib/vedeu/support/terminal'

module Vedeu
  describe Output do
    describe '.render' do
      it 'returns an Array' do
        output = "\e[3;3H            \e[3;3H" \
                 "\e[3;3HSome text...\e[3;3H"
        InterfaceRepository.stub(:refresh, [output]) do
          Terminal.stub(:output, output) do
            Output.render.first.must_equal(output)
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vedeu-0.0.39 test/lib/vedeu/output/output_test.rb
vedeu-0.0.38 test/lib/vedeu/output/output_test.rb
vedeu-0.0.37 test/lib/vedeu/output/output_test.rb
vedeu-0.0.36 test/lib/vedeu/output/output_test.rb
vedeu-0.0.35 test/lib/vedeu/output/output_test.rb
vedeu-0.0.34 test/lib/vedeu/output/output_test.rb
vedeu-0.0.33 test/lib/vedeu/output/output_test.rb