Issue #18022 has been updated by duerst (Martin D=FCrst).

Status changed from Open to Feedback

Okay, I changed the last `it` by extending its version to `3.0`, and added =
a new `it`, as follows (and similar for emoji):

```Ruby
  ruby_version_is "2.6.3"..."3.0" do
    it "is 12.1.0 for Ruby 2.6.3+, Ruby 2.7, and Ruby 3.0" do
      RbConfig::CONFIG['UNICODE_VERSION'].should =3D=3D "12.1.0"
    end
  end

  ruby_version_is "3.1" do
    it "is 13.0.0 for Ruby 3.1" do
      RbConfig::CONFIG['UNICODE_VERSION'].should =3D=3D "13.0.0"
    end
  end
```

That got rid of the errors, but I'm of course not sure that this does the r=
ight thing for older versions.
(When running `make test-spec`, I also get a lot of errors that say `NoMeth=
odError: undefined method `started?' for nil:NilClass`, always for `@http.f=
inish if @http.started?`, but I'm assuming these are unrelated to what I'm =
doing.)

----------------------------------------
Bug #18022: Spec errors for rbconfig/unicode_[emoji_]version_spec: Using Ru=
by 2.7 even when on Ruby 3.1
https://bugs.ruby-lang.org/issues/18022#change-92764

* Author: duerst (Martin D=FCrst)
* Status: Feedback
* Priority: Normal
* Assignee: Eregon (Benoit Daloze)
* ruby -v: ruby 3.1.0dev (2021-07-04T08:11:22Z master 0a931ef8f9) [x86_64-l=
inux]
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------




-- =

https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=3Dunsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>