From: duerst@...
Date: 2021-07-04T10:03:40+00:00
Subject: [ruby-core:104496] [Ruby master Bug#18022] Spec errors for rbconfig/unicode_[emoji_]version_spec: Using Ruby 2.7 even when on Ruby 3.1

Issue #18022 has been updated by duerst (Martin D�rst).

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 == "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 == "13.0.0"
    end
  end
```

That got rid of the errors, but I'm of course not sure that this does the right thing for older versions.
(When running `make test-spec`, I also get a lot of errors that say `NoMethodError: undefined method `started?' for nil:NilClass`, always for `@http.finish 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 Ruby 2.7 even when on Ruby 3.1
https://bugs.ruby-lang.org/issues/18022#change-92764

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




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

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