Sha256: 5920ed80e4d48a6da39393b438ce5aee3687f38df557dd4be2326c133a4e6363

Contents?: true

Size: 1.21 KB

Versions: 22

Compression:

Stored size: 1.21 KB

Contents

require 'test_helper'

module Vedeu

  module EscapeSequences

    describe Actions do

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

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

      describe 'action methods' do
        it { described.hide_cursor.must_equal("\e[?25l") }
        it { described.show_cursor.must_equal("\e[?25h") }
        it { described.cursor_position.must_equal("\e[6n") }
        it { described.bg_reset.must_equal("\e[49m") }
        it { described.blink.must_equal("\e[5m") }
        it { described.blink_off.must_equal("\e[25m") }
        it { described.bold.must_equal("\e[1m") }
        it { described.bold_off.must_equal("\e[22m") }
        it { described.dim.must_equal("\e[2m") }
        it { described.fg_reset.must_equal("\e[39m") }
        it { described.negative.must_equal("\e[7m") }
        it { described.positive.must_equal("\e[27m") }
        it { described.reset.must_equal("\e[0m") }
        it { described.underline.must_equal("\e[4m") }
        it { described.underline_off.must_equal("\e[24m") }
      end

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

    end # Actions

  end # EscapeSequences

end # Vedeu

Version data entries

22 entries across 22 versions & 1 rubygems

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