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
|
@ -1,8 +1,6 @@
|
|||
describe :dir_pwd, shared: true do
|
||||
with_feature :encoding do
|
||||
before :each do
|
||||
@fs_encoding = Encoding.find('filesystem')
|
||||
end
|
||||
before :each do
|
||||
@fs_encoding = Encoding.find('filesystem')
|
||||
end
|
||||
|
||||
it "returns the current working directory" do
|
||||
|
@ -36,14 +34,12 @@ describe :dir_pwd, shared: true do
|
|||
end
|
||||
end
|
||||
|
||||
with_feature :encoding do
|
||||
it "returns a String with the filesystem encoding" do
|
||||
enc = Dir.send(@method).encoding
|
||||
if @fs_encoding == Encoding::US_ASCII
|
||||
[Encoding::US_ASCII, Encoding::ASCII_8BIT].should include(enc)
|
||||
else
|
||||
enc.should equal(@fs_encoding)
|
||||
end
|
||||
it "returns a String with the filesystem encoding" do
|
||||
enc = Dir.send(@method).encoding
|
||||
if @fs_encoding == Encoding::US_ASCII
|
||||
[Encoding::US_ASCII, Encoding::ASCII_8BIT].should include(enc)
|
||||
else
|
||||
enc.should equal(@fs_encoding)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue