Sha256: 68d08db9d81933ffcfaf15d4cf4b4ceceabe893b509ef1df9bf679d11b8b245e

Contents?: true

Size: 367 Bytes

Versions: 44

Compression:

Stored size: 367 Bytes

Contents

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

require "vagrant/util/line_ending_helpers"

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

  it "should convert DOS to unix-style line endings" do
    klass.dos_to_unix("foo\r\nbar\r\n").should == "foo\nbar\n"
  end
end

Version data entries

44 entries across 44 versions & 11 rubygems

Version Path
vagrantup-1.0.7 test/unit/vagrant/util/line_endings_helper_test.rb
vagrantup-1.0.6 test/unit/vagrant/util/line_endings_helper_test.rb
vagrantup-1.0.5 test/unit/vagrant/util/line_endings_helper_test.rb
vagrantup-1.0.4 test/unit/vagrant/util/line_endings_helper_test.rb
vagrantup-1.0.3 test/unit/vagrant/util/line_endings_helper_test.rb
vagrantup-1.0.2 test/unit/vagrant/util/line_endings_helper_test.rb
vagrantup-1.0.1 test/unit/vagrant/util/line_endings_helper_test.rb
vagrantup-1.0.0 test/unit/vagrant/util/line_endings_helper_test.rb
vagrantup-0.9.99.2 test/unit/vagrant/util/line_endings_helper_test.rb
vagrantup-0.9.99.1 test/unit/vagrant/util/line_endings_helper_test.rb
vagrantup-1.1.4 test/unit/vagrant/util/line_endings_helper_test.rb
vagrant-fixed-ssh-1.0.7 test/unit/vagrant/util/line_endings_helper_test.rb
vagrant-actionio-0.0.9 vendor/bundle/bundler/gems/vagrant-c74251a1d9c0/test/unit/vagrant/util/line_endings_helper_test.rb
vagrant-lxc-0.0.1 vendor/vagrant/test/unit/vagrant/util/line_endings_helper_test.rb
vagrant-1.0.7 test/unit/vagrant/util/line_endings_helper_test.rb
vagrant-1.0.6 test/unit/vagrant/util/line_endings_helper_test.rb
boxcar-0.10005.1 test/unit/vagrant/util/line_endings_helper_test.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/vagrant-1.0.5/test/unit/vagrant/util/line_endings_helper_test.rb
vagrant-1.0.5 test/unit/vagrant/util/line_endings_helper_test.rb
vagrant-1.0.4 test/unit/vagrant/util/line_endings_helper_test.rb