diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 06:29:36 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:30:00 +0900 |
commit | 01d141938cfdc8cb0d370c659d976af7ed9623ae (patch) | |
tree | 09422023388b96f89730160bd49044faefc4550e /spec | |
parent | 7ed1fc527e029f47c4ed17136fb1492c9fbdfdc9 (diff) |
Fixed the broken example with ruby core structure.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/commands/newgem_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb index 94f4d82e98..7b05bf3ed0 100644 --- a/spec/bundler/commands/newgem_spec.rb +++ b/spec/bundler/commands/newgem_spec.rb @@ -275,7 +275,8 @@ RSpec.describe "bundle gem" do 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 |