mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[bundler/bundler] Change the refresh spec to not use stubs_for
We plan to incrementally populate this array in rubygems, so that will
break the test because the first time `find_by_name("rack")` is called
will make the `rack` gem available in the array.
We can test the same thing using some other way, which is more
appropriate anyways, because `Bundler.rubygems.find_name` is only used
inside `bundler` to look for the `bundler` gem itself whereas
`Bundler.rubygems.all_specs` is used in more places.
49c519ef47
This commit is contained in:
parent
a181df7542
commit
a6ce001bab
1 changed files with 3 additions and 3 deletions
|
@ -854,12 +854,12 @@ end
|
||||||
G
|
G
|
||||||
|
|
||||||
run <<-R
|
run <<-R
|
||||||
puts Bundler.rubygems.find_name("rack").inspect
|
puts Bundler.rubygems.all_specs.map(&:name)
|
||||||
Gem.refresh
|
Gem.refresh
|
||||||
puts Bundler.rubygems.find_name("rack").inspect
|
puts Bundler.rubygems.all_specs.map(&:name)
|
||||||
R
|
R
|
||||||
|
|
||||||
expect(out).to eq("[]\n[]")
|
expect(out).to eq("activesupport\nbundler\nactivesupport\nbundler")
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "when a vendored gem specification uses the :path option" do
|
describe "when a vendored gem specification uses the :path option" do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue