aboutsummaryrefslogtreecommitdiffstats
path: root/spec/bundler/commands
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-31 11:03:11 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:29:55 +0900
commitd8d5e16305ee071f7cf16980788cabcc44799c2e (patch)
tree9956149fe885a5411386286926507e43b0302521 /spec/bundler/commands
parent1c070c9c2908736d610773a980a73395f5188cf2 (diff)
downloadruby-d8d5e16305ee071f7cf16980788cabcc44799c2e.tar.gz
[bundler/bundler] Use a clean gemspec for gem helper specs
https://github.com/bundler/bundler/commit/f694fe7f67
Diffstat (limited to 'spec/bundler/commands')
-rw-r--r--spec/bundler/commands/newgem_spec.rb14
1 files changed, 1 insertions, 13 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb
index 203b474877..222e6ce2d4 100644
--- a/spec/bundler/commands/newgem_spec.rb
+++ b/spec/bundler/commands/newgem_spec.rb
@@ -177,19 +177,7 @@ RSpec.describe "bundle gem" do
in_app_root
bundle! "gem newgem --bin"
- process_file(bundled_app("newgem", "newgem.gemspec")) do |line|
- # Simulate replacing TODOs with real values
- case line
- when /spec\.metadata\["(?:allowed_push_host|homepage_uri|source_code_uri|changelog_uri)"\]/, /spec\.homepage/
- line.gsub(/\=.*$/, "= 'http://example.org'")
- when /spec\.summary/
- line.gsub(/\=.*$/, "= %q{A short summary of my new gem.}")
- when /spec\.description/
- line.gsub(/\=.*$/, "= %q{A longer description of my new gem.}")
- else
- line
- end
- end
+ prepare_gemspec(bundled_app("newgem", "newgem.gemspec"))
Dir.chdir(bundled_app("newgem")) do
gems = ["rake-12.3.2", :bundler]