diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-04-28 11:53:57 +0200 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-04-28 11:53:57 +0200 |
commit | 86165f8037b1b1f0cdb3826abf0e65beb777adb0 (patch) | |
tree | f9d677f3746aaa3b3a56579b724c95afc5fe8c82 /spec/support/builders.rb | |
parent | 28e67dc7e4b9e3a6c67524597f7cd64e12ddbf6d (diff) | |
download | bundler-86165f8037b1b1f0cdb3826abf0e65beb777adb0.tar.gz |
Mark updated git gems in specs as being from git
Diffstat (limited to 'spec/support/builders.rb')
-rw-r--r-- | spec/support/builders.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/builders.rb b/spec/support/builders.rb index 75aed0e7ee..28a271998e 100644 --- a/spec/support/builders.rb +++ b/spec/support/builders.rb @@ -659,6 +659,7 @@ module Spec def _build(options) libpath = options[:path] || _default_path update_gemspec = options[:gemspec] || false + source = options[:source] || "git@#{libpath}" Dir.chdir(libpath) do silently "git checkout master" @@ -684,7 +685,7 @@ module Spec _default_files.keys.each do |path| _default_files[path] += "\n#{Builders.constantize(name)}_PREV_REF = '#{current_ref}'" end - super(options.merge(:path => libpath, :gemspec => update_gemspec)) + super(options.merge(:path => libpath, :gemspec => update_gemspec, :source => source)) `git add *` `git commit -m "BUMP"` end |