[rubygems/rubygems] Change spec to do the right thing on bundler 3
On bundler 3, the --deployment flag doesn't exist, so the bundle install --deployment command was failing silently and the spec was verifying a different scenario.
Change the spec to work the same regardless of bundler's major version.
Also, from the spec description it was not apparently that a specific case involving deployment mode was being tested, so I reworded it to make it more apparent.
[rubygems/rubygems] Change spec to do the right thing on bundler 3
On bundler 3, the
--deploymentflag doesn't exist, so thebundle install --deploymentcommand was failing silently and the spec wasverifying a different scenario.
Change the spec to work the same regardless of bundler's major version.
Also, from the spec description it was not apparently that a specific
case involving deployment mode was being tested, so I reworded it to
make it more apparent.
https://github.com/rubygems/rubygems/commit/3e33e2b927