Skip to content

Commit

Permalink
[rubygems/rubygems] Extract a spec variable
Browse files Browse the repository at this point in the history
It's consistent with the previous test and makes print debugging easier.

rubygems/rubygems@d7f424df16
  • Loading branch information
deivid-rodriguez authored and matzbot committed May 31, 2024
1 parent 21f10ca commit 5668933
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/rubygems/test_gem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1615,9 +1615,11 @@ def test_gem_path_ordering_short

Gem.use_paths Gem.dir, [Gem.dir, Gem.user_dir]

spec = Gem::Dependency.new("m", "1").to_spec

assert_equal \
File.join(Gem.dir, "gems", "m-1"),
Gem::Dependency.new("m","1").to_spec.gem_dir,
spec.gem_dir,
"Wrong spec selected"
end

Expand Down

0 comments on commit 5668933

Please sign in to comment.