summaryrefslogtreecommitdiff
path: root/spec/ruby/core/dir/shared/path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/dir/shared/path.rb')
-rw-r--r--spec/ruby/core/dir/shared/path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/dir/shared/path.rb b/spec/ruby/core/dir/shared/path.rb
index 494dcca775..7647c04421 100644
--- a/spec/ruby/core/dir/shared/path.rb
+++ b/spec/ruby/core/dir/shared/path.rb
@@ -22,7 +22,7 @@ describe :dir_path, shared: true do
path = DirSpecs.mock_dir.force_encoding Encoding::IBM866
dir = Dir.open path
begin
- dir.send(@method).encoding.should equal(Encoding::IBM866)
+ dir.send(@method).encoding.should.equal?(Encoding::IBM866)
ensure
dir.close
end