Sha256: 3ec8bcd9221dd7b981869f4c9a7a623bd9e3d67af5cb9ea77ef8aa2e91acfa9b

Contents?: true

Size: 1.07 KB

Versions: 22

Compression:

Stored size: 1.07 KB

Contents

require 'test_helper'

module Vedeu

  module EscapeSequences

    describe Borders do

      let(:described) { Vedeu::EscapeSequences::Borders }

      before { Vedeu::Terminal.stubs(:size).returns([80, 25]) }

      describe 'border methods' do
        it { described.border_on.must_equal("\e(0") }
        it { described.border_off.must_equal("\e(B") }

        it { described.bottom_right.must_equal("\x6A") }
        it { described.top_right.must_equal("\x6B") }
        it { described.top_left.must_equal("\x6C") }
        it { described.bottom_left.must_equal("\x6D") }
        it { described.horizontal.must_equal("\x71") }
        it { described.vertical_left.must_equal("\x74") }
        it { described.vertical_right.must_equal("\x75") }
        it { described.horizontal_bottom.must_equal("\x76") }
        it { described.horizontal_top.must_equal("\x77") }
        it { described.vertical.must_equal("\x78") }
      end

      describe '.characters' do
        it { described.characters.must_be_instance_of(Hash) }
      end

    end # Borders

  end # EscapeSequences

end # Vedeu

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
vedeu-0.6.19 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.18 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.17 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.16 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.15 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.14 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.13 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.12 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.11 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.10 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.9 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.8 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.7 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.6 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.5 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.4 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.3 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.2 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.1 test/lib/vedeu/esc/borders_test.rb
vedeu-0.6.0 test/lib/vedeu/esc/borders_test.rb