<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/spec/bundler/support/helpers.rb, branch v4.0.3</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/rubygems] Improve error messages and handling in tests</title>
<updated>2025-11-20T22:02:28+00:00</updated>
<author>
<name>eileencodes</name>
<email>eileencodes@gmail.com</email>
</author>
<published>2025-11-19T17:08:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cb9c7a6a0a451fc158055145d0bce4891b62e32f'/>
<id>cb9c7a6a0a451fc158055145d0bce4891b62e32f</id>
<content type='text'>
This is a first pass to improve the way errors are handled and raised in
bundler's tests. The goal is to clean up tests and modernize them -
these were some obvious areas that could be cleaned up.

- Instead of raising "ZOMG" in the load error tests, it now tests for
the actual error and gem raising.
- Improve error messages where applicable.
- All errors raise a specific error class, rather than falling back to a
default and just setting a message.
- Removed arguments and `bundle_dir` option from `TheBundle` class as it wasn't
actually used so therefore we don't need to raise an error for extra
arguments.
- Removed error from `BundlerBuilder`, as it won't work if it's not
`bundler`, also it never uses `name`. The only reaon `name` is passed
in is because of metaprogramming on loading the right builder. I
think that should eventually be refactored.
- Replaced and removed `update_repo3` and `update_repo4` in favor of
just `build_repo3` and `build_repo4`. Rather than tell someone writing
tests to use a different method, automatically use the right method.

https://github.com/ruby/rubygems/commit/68c39c8451
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a first pass to improve the way errors are handled and raised in
bundler's tests. The goal is to clean up tests and modernize them -
these were some obvious areas that could be cleaned up.

- Instead of raising "ZOMG" in the load error tests, it now tests for
the actual error and gem raising.
- Improve error messages where applicable.
- All errors raise a specific error class, rather than falling back to a
default and just setting a message.
- Removed arguments and `bundle_dir` option from `TheBundle` class as it wasn't
actually used so therefore we don't need to raise an error for extra
arguments.
- Removed error from `BundlerBuilder`, as it won't work if it's not
`bundler`, also it never uses `name`. The only reaon `name` is passed
in is because of metaprogramming on loading the right builder. I
think that should eventually be refactored.
- Replaced and removed `update_repo3` and `update_repo4` in favor of
just `build_repo3` and `build_repo4`. Rather than tell someone writing
tests to use a different method, automatically use the right method.

https://github.com/ruby/rubygems/commit/68c39c8451
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rubygems] We don't need to allow some warning because:</title>
<updated>2025-11-13T06:28:46+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-06-23T11:26:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=253485484c08aa56b1ea154b880eea217656d195'/>
<id>253485484c08aa56b1ea154b880eea217656d195</id>
<content type='text'>
Always build gems with RubyGems programmatically

https://github.com/ruby/rubygems/commit/5cc0c34e64
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Always build gems with RubyGems programmatically

https://github.com/ruby/rubygems/commit/5cc0c34e64
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rubygems] Simulate default gems manually</title>
<updated>2025-10-28T11:06:18+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-04-18T08:40:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=52451798d2647739912b8a32b055ff998abe69a7'/>
<id>52451798d2647739912b8a32b055ff998abe69a7</id>
<content type='text'>
https://github.com/ruby/rubygems/commit/c3cc38c72c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/rubygems/commit/c3cc38c72c
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Improve `deprecations` helper</title>
<updated>2025-09-03T14:38:37+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-07-15T12:36:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d20936c9f59a5be8f4de6057d47cbc417111b0ca'/>
<id>d20936c9f59a5be8f4de6057d47cbc417111b0ca</id>
<content type='text'>
Previous implementation included an empty element in the list of
deprecations.

https://github.com/rubygems/rubygems/commit/59eb233039
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previous implementation included an empty element in the list of
deprecations.

https://github.com/rubygems/rubygems/commit/59eb233039
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Don't create an empty `tmp/2.1` directory when running spec:deps task</title>
<updated>2025-07-25T02:10:38+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-07-23T19:29:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2321091cfae11b81027021bb5de1ba807da7a42e'/>
<id>2321091cfae11b81027021bb5de1ba807da7a42e</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/3189d3e49b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/3189d3e49b
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Build bundler gem just once for specs</title>
<updated>2025-07-25T02:10:37+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-07-23T18:09:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e67f595e8f3f76f20d7a6b9fd0498ff7b641391c'/>
<id>e67f595e8f3f76f20d7a6b9fd0498ff7b641391c</id>
<content type='text'>
When we need to reset system gems during specs, there's no need to
rebuild bundler, we can copy over the original gem home.

https://github.com/rubygems/rubygems/commit/7b4f80747b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When we need to reset system gems during specs, there's no need to
rebuild bundler, we can copy over the original gem home.

https://github.com/rubygems/rubygems/commit/7b4f80747b
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Don't create an empty bundled_app when setting up deps</title>
<updated>2025-07-25T02:10:36+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-07-23T15:41:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=63c422377543a8d8ec8efc4aacb6c0f1a8533ff7'/>
<id>63c422377543a8d8ec8efc4aacb6c0f1a8533ff7</id>
<content type='text'>
Running everything in `bundled_app` by default causes the `bundled_app`
helper to be used everytime, and that will create a scoped bundled_app
folder if it does not exist. That causes `bin/rake spec:deps` to create
an empty `tmp/2.1/bundled_app` folder which is a bit weird.

This commit changes specs to not switch to a (possibly empty)
bundled_app directory when not necessary (for example, when running
`gem` commands in order to setup test dependencies).

https://github.com/rubygems/rubygems/commit/4bf89c0705
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Running everything in `bundled_app` by default causes the `bundled_app`
helper to be used everytime, and that will create a scoped bundled_app
folder if it does not exist. That causes `bin/rake spec:deps` to create
an empty `tmp/2.1/bundled_app` folder which is a bit weird.

This commit changes specs to not switch to a (possibly empty)
bundled_app directory when not necessary (for example, when running
`gem` commands in order to setup test dependencies).

https://github.com/rubygems/rubygems/commit/4bf89c0705
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Fix some specs running the wrong rake</title>
<updated>2025-07-25T02:10:34+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-07-23T17:16:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b78406a032b747408bb466716ef02c195a327b85'/>
<id>b78406a032b747408bb466716ef02c195a327b85</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/8d4eb154b1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/8d4eb154b1
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Reset tmp directories before spec suite</title>
<updated>2025-07-14T02:52:13+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-07-10T20:51:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=51e890030fd27c49abd0e0bb46abfd42edc8d0b9'/>
<id>51e890030fd27c49abd0e0bb46abfd42edc8d0b9</id>
<content type='text'>
If you abort running test suite with a quick double Ctrl-C, tmp files
will be left around, and they will interfere with the next test run.

To avoid this, make sure to clear them once at the beginning of the test
suite.

### Before

```
$ bin/parallel_rspec
16 processes for 175 specs, ~ 11 specs per process
.............................................................................................^C^C

Finished in 19.45 seconds (files took 0.42722 seconds to load)
94 examples, 0 failures

(... turbo tests backtrace ...)

$ bin/parallel_rspec
16 processes for 175 specs, ~ 11 specs per process
.F....F....F...F......^C

Failures:

(... failures' details ...)
```

### After

```
$ bin/parallel_rspec
16 processes for 175 specs, ~ 11 specs per process
.................................................................................^C^C

Finished in 18.18 seconds (files took 0.4383 seconds to load)
82 examples, 0 failures

(... turbo tests backtrace ...)

$ bin/parallel_rspec
16 processes for 175 specs, ~ 11 specs per process
................................................................................^C^C

Finished in 8.79 seconds (files took 0.45187 seconds to load)
80 examples, 0 failures

(... turbo tests backtrace ...)
```

https://github.com/rubygems/rubygems/commit/6767a52711
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If you abort running test suite with a quick double Ctrl-C, tmp files
will be left around, and they will interfere with the next test run.

To avoid this, make sure to clear them once at the beginning of the test
suite.

### Before

```
$ bin/parallel_rspec
16 processes for 175 specs, ~ 11 specs per process
.............................................................................................^C^C

Finished in 19.45 seconds (files took 0.42722 seconds to load)
94 examples, 0 failures

(... turbo tests backtrace ...)

$ bin/parallel_rspec
16 processes for 175 specs, ~ 11 specs per process
.F....F....F...F......^C

Failures:

(... failures' details ...)
```

### After

```
$ bin/parallel_rspec
16 processes for 175 specs, ~ 11 specs per process
.................................................................................^C^C

Finished in 18.18 seconds (files took 0.4383 seconds to load)
82 examples, 0 failures

(... turbo tests backtrace ...)

$ bin/parallel_rspec
16 processes for 175 specs, ~ 11 specs per process
................................................................................^C^C

Finished in 8.79 seconds (files took 0.45187 seconds to load)
80 examples, 0 failures

(... turbo tests backtrace ...)
```

https://github.com/rubygems/rubygems/commit/6767a52711
</pre>
</div>
</content>
</entry>
<entry>
<title>Sync RubyGems</title>
<updated>2025-07-03T04:43:00+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2025-07-02T19:25:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=81da38b3080a0d971d7b1720015117fef2d19c98'/>
<id>81da38b3080a0d971d7b1720015117fef2d19c98</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
