spec/support/helpers.rb in bundler-1.2.5 vs spec/support/helpers.rb in bundler-1.3.0.pre

- old
+ new

@@ -146,24 +146,19 @@ path = bundled_app("Gemfile") path = args.shift if Pathname === args.first str = args.shift || "" path.dirname.mkpath File.open(path.to_s, 'w') do |f| - f.puts str + f.puts strip_whitespace(str) end end def lockfile(*args) path = bundled_app("Gemfile.lock") path = args.shift if Pathname === args.first str = args.shift || "" - - # Trim the leading spaces - spaces = str[/\A\s+/, 0] || "" - str.gsub!(/^#{spaces}/, '') - File.open(path.to_s, 'w') do |f| - f.puts str + f.puts strip_whitespace(str) end end def strip_whitespace(str) # Trim the leading spaces