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
vagrant-1.0.3 test/unit/vagrant/util/line_endings_helper_test.rb
vagrant-1.0.2 test/unit/vagrant/util/line_endings_helper_test.rb
vagrant-1.0.1 test/unit/vagrant/util/line_endings_helper_test.rb
vagrant-1.0.0 test/unit/vagrant/util/line_endings_helper_test.rb