ruby-changes:56788
From: Hiroshi <ko1@a...>
Date: Sun, 4 Aug 2019 01:00:37 +0900 (JST)
Subject: [ruby-changes:56788] Hiroshi SHIBATA: 01d141938c (master): Fixed the broken example with ruby core structure.
https://git.ruby-lang.org/ruby.git/commit/?id=01d141938c From 01d141938cfdc8cb0d370c659d976af7ed9623ae Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Sat, 3 Aug 2019 06:29:36 +0900 Subject: Fixed the broken example with ruby core structure. diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb index 94f4d82..7b05bf3 100644 --- a/spec/bundler/commands/newgem_spec.rb +++ b/spec/bundler/commands/newgem_spec.rb @@ -275,7 +275,8 @@ RSpec.describe "bundle gem" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/newgem_spec.rb#L275 end it "sets a minimum ruby version" do - bundler_gemspec = Bundler::GemHelper.new(File.expand_path("../..", __dir__)).gemspec + gemspec_path = ruby_core? ? "../../../lib/bundler" : "../.." + bundler_gemspec = Bundler::GemHelper.new(File.expand_path(gemspec_path, __dir__)).gemspec expect(bundler_gemspec.required_ruby_version).to eq(generated_gemspec.required_ruby_version) end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/