mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@7de852d
This commit is contained in:
parent
994833085a
commit
79671ec57e
135 changed files with 4415 additions and 4885 deletions
|
@ -18,15 +18,13 @@ describe :dir_path, shared: true do
|
|||
dir.send(@method).should == DirSpecs.mock_dir
|
||||
end
|
||||
|
||||
with_feature :encoding do
|
||||
it "returns a String with the same encoding as the argument to .open" do
|
||||
path = DirSpecs.mock_dir.force_encoding Encoding::IBM866
|
||||
dir = Dir.open path
|
||||
begin
|
||||
dir.send(@method).encoding.should equal(Encoding::IBM866)
|
||||
ensure
|
||||
dir.close
|
||||
end
|
||||
it "returns a String with the same encoding as the argument to .open" do
|
||||
path = DirSpecs.mock_dir.force_encoding Encoding::IBM866
|
||||
dir = Dir.open path
|
||||
begin
|
||||
dir.send(@method).encoding.should equal(Encoding::IBM866)
|
||||
ensure
|
||||
dir.close
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue