summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file/shared/path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/file/shared/path.rb')
-rw-r--r--spec/ruby/core/file/shared/path.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/ruby/core/file/shared/path.rb b/spec/ruby/core/file/shared/path.rb
index 503e485f1e..9df3416c89 100644
--- a/spec/ruby/core/file/shared/path.rb
+++ b/spec/ruby/core/file/shared/path.rb
@@ -44,12 +44,10 @@ describe :file_path, shared: true do
end
end
- with_feature :encoding do
- it "preserves the encoding of the path" do
- path = @path.force_encoding("euc-jp")
- @file = File.new path
- @file.send(@method).encoding.should == Encoding.find("euc-jp")
- end
+ it "preserves the encoding of the path" do
+ path = @path.force_encoding("euc-jp")
+ @file = File.new path
+ @file.send(@method).encoding.should == Encoding.find("euc-jp")
end
ruby_version_is "2.5" do