Sha256: 202f196f2d2c7759ecba8dc0dff1fabed675cdb0e1bf9ade9b09847560a4852a

Contents?: true

Size: 363 Bytes

Versions: 47

Compression:

Stored size: 363 Bytes

Contents

require File.expand_path("../../../base", __FILE__)

require "vagrant/util/ansi_escape_code_remover"

describe Vagrant::Util::ANSIEscapeCodeRemover do
  let(:klass) do
    Class.new do
      extend Vagrant::Util::ANSIEscapeCodeRemover
    end
  end

  it "should remove ANSI escape codes" do
    klass.remove_ansi_escape_codes("\e[Hyo").should == "yo"
  end
end

Version data entries

47 entries across 47 versions & 11 rubygems

Version Path
tamtam-vagrant-reload-1.1.3 vendor/cache/vagrant-0ac2a8738841/test/unit/vagrant/util/ansi_escape_code_remover_test.rb
tamtam-vagrant-reload-1.1.2 vendor/cache/vagrant-0ac2a8738841/test/unit/vagrant/util/ansi_escape_code_remover_test.rb
tamtam-vagrant-reload-1.1.1 vendor/cache/vagrant-0ac2a8738841/test/unit/vagrant/util/ansi_escape_code_remover_test.rb
tamtam-vagrant-reload-1.1 vendor/cache/vagrant-0ac2a8738841/test/unit/vagrant/util/ansi_escape_code_remover_test.rb
bmhatfield-vagrant-1.0.10 test/unit/vagrant/util/ansi_escape_code_remover_test.rb
bmhatfield-vagrant-1.0.9 test/unit/vagrant/util/ansi_escape_code_remover_test.rb
tnargav-1.3.6 test/unit/vagrant/util/ansi_escape_code_remover_test.rb
tnargav-1.3.3 test/unit/vagrant/util/ansi_escape_code_remover_test.rb
bmhatfield-vagrant-1.0.8 test/unit/vagrant/util/ansi_escape_code_remover_test.rb
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/test/unit/vagrant/util/ansi_escape_code_remover_test.rb
tnargav-1.2.3 test/unit/vagrant/util/ansi_escape_code_remover_test.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/test/unit/vagrant/util/ansi_escape_code_remover_test.rb
bmhatfield-vagrant-1.0.7 test/unit/vagrant/util/ansi_escape_code_remover_test.rb
vagrant-shell-0.2.6 vendor/bundle/gems/tnargav-1.2.2/test/unit/vagrant/util/ansi_escape_code_remover_test.rb
vagrant-shell-0.2.5 vendor/bundle/gems/tnargav-1.2.2/test/unit/vagrant/util/ansi_escape_code_remover_test.rb
tnargav-1.2.2 test/unit/vagrant/util/ansi_escape_code_remover_test.rb
vagrantup-1.1.3 test/unit/vagrant/util/ansi_escape_code_remover_test.rb
vagrantup-1.1.2 test/unit/vagrant/util/ansi_escape_code_remover_test.rb
vagrantup-1.1.1 test/unit/vagrant/util/ansi_escape_code_remover_test.rb
vagrantup-1.1.0 test/unit/vagrant/util/ansi_escape_code_remover_test.rb