spec/support/helpers.rb in bundler-1.1.rc.8 vs spec/support/helpers.rb in bundler-1.1.0

- old
+ new

@@ -160,9 +160,15 @@ File.open(path.to_s, 'w') do |f| f.puts str end end + def strip_whitespace(str) + # Trim the leading spaces + spaces = str[/\A\s+/, 0] || "" + str.gsub(/^#{spaces}/, '') + end + def install_gemfile(*args) gemfile(*args) opts = args.last.is_a?(Hash) ? args.last : {} bundle :install, opts end