Vít Ondruch wrote on 2022/09/29 20:15:
> And another issue for Mamoru, this time from rspec-core:
> ~~~
> expected "\nAn error occurred while loading
./spec/example_spec.rb.\nFailure/Error:\n RSpec.describe Fixnum d...files took 0.05699
seconds to load)\n0 examples, 0 failures, 1 error occurred outside of examples\n" not
to string includes: "0 examples"
> Diff:
> @@ -1,2 +1,22 @@
> -0 examples
> +
> +An error occurred while loading ./spec/example_spec.rb.
> +Failure/Error:
> + RSpec.describe Fixnum do
> + describe 'inner' do
> + describe String do
> + it "is available as described_class" do
> + expect(described_class).to eq(String)
> + end
> + end
> + end
> + end
> +
> +NameError:
> + uninitialized constant Fixnum
> +# ./spec/example_spec.rb:1:in `<top (required)>'
> +No examples found.
> +
> +
> +Finished in 0.00003 seconds (files took 0.05699 seconds to load)
> +0 examples, 0 failures, 1 error occurred outside of examples
> ~~~
> And here is the fix:
>
https://github.com/rspec/rspec-core/commit/bf49c78d7a92e253d557924a3f85fd...
> This is likely due to:
>
https://github.com/ruby/ruby/blob/28840d74c26189f4e730b906c2383e32ea6165f...
> In short, it seems to be due
to removing deprecated `Fixnum` and `Bignum`. This might cause some troubles. Not in
rspec-core.
Okay, backported (with minimum changes):
https://src.fedoraproject.org/rpms/rubygem-rspec-core/c/e7531e5398dc0d81f...
I guess removal of Fixnum / Bignum / tainted? and so on will affect many packages.
Mamoru.