vaguerent/test/unit/vagrant/util/line_endings_helper_test.rb
2012-02-10 18:07:59 -08:00

17 lines
367 B
Ruby

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