diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-12-01 21:14:58 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-12-01 21:55:51 +0900 |
commit | ab516e263c06fbd755d4805ad529c32b1b8292b5 (patch) | |
tree | f709104c313268e8443174ab03242fc1e8f6c39c /spec/ruby/core/env/to_a_spec.rb | |
parent | 4e03a7298b3a99de9c57f9a4934d38445cad1b10 (diff) |
[ruby/spec] Fix failures with LC_ALL=C
https://github.com/ruby/spec/commit/51047687c0
https://github.com/ruby/spec/commit/2b87b467cc
Diffstat (limited to 'spec/ruby/core/env/to_a_spec.rb')
-rw-r--r-- | spec/ruby/core/env/to_a_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/env/to_a_spec.rb b/spec/ruby/core/env/to_a_spec.rb index 25441eb029..39e3877b48 100644 --- a/spec/ruby/core/env/to_a_spec.rb +++ b/spec/ruby/core/env/to_a_spec.rb @@ -1,4 +1,4 @@ -require_relative '../../spec_helper' +require_relative 'spec_helper' describe "ENV.to_a" do @@ -11,8 +11,8 @@ describe "ENV.to_a" do it "returns the entries in the locale encoding" do ENV.to_a.each do |key, value| - key.encoding.should == Encoding.find('locale') - value.encoding.should == Encoding.find('locale') + key.should.be_locale_env + value.should.be_locale_env end end end |