summaryrefslogtreecommitdiff
path: root/spec/support/builders.rb
diff options
context:
space:
mode:
authorAsutosh Palai <asupalai@gmail.com>2016-06-20 19:12:30 +0530
committerAsutosh Palai <asupalai@gmail.com>2016-07-03 09:40:59 +0530
commit9f5e6032232650a13c83d7dd1a99c1d4638fdf9c (patch)
tree8fd1a339a21c30c5b417512bec0eaf495d5ee155 /spec/support/builders.rb
parentbd1b1cfb2fd13d98a0b9ffd799ee1c0042d6226c (diff)
downloadbundler-9f5e6032232650a13c83d7dd1a99c1d4638fdf9c.tar.gz
Added spec for updating gemfile
Diffstat (limited to 'spec/support/builders.rb')
-rw-r--r--spec/support/builders.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/builders.rb b/spec/support/builders.rb
index 8e19f9ae94..99acadc5d0 100644
--- a/spec/support/builders.rb
+++ b/spec/support/builders.rb
@@ -629,6 +629,7 @@ module Spec
def _build(options)
libpath = options[:path] || _default_path
+ update_gemspec = options[:gemspec] || false
Dir.chdir(libpath) do
silently "git checkout master"
@@ -653,7 +654,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 => false))
+ super(options.merge(:path => libpath, :gemspec => update_gemspec))
`git add *`
`git commit -m "BUMP"`
end