Update to ruby/spec@51f301d
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5506d86e99
commit
015a415ee3
@ -4,9 +4,11 @@ describe "ruby -E" do
|
|||||||
result.should == "EUC-JP"
|
result.should == "EUC-JP"
|
||||||
end
|
end
|
||||||
|
|
||||||
it "also sets the filesystem encoding with '-E external'" do
|
platform_is_not :windows do
|
||||||
result = ruby_exe("print Encoding.find('filesystem')", options: '-E euc-jp')
|
it "also sets the filesystem encoding with '-E external'" do
|
||||||
result.should == "EUC-JP"
|
result = ruby_exe("print Encoding.find('filesystem')", options: '-E euc-jp')
|
||||||
|
result.should == "EUC-JP"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it "sets the external encoding with '-E external:'" do
|
it "sets the external encoding with '-E external:'" do
|
||||||
|
@ -35,9 +35,11 @@ with_feature :encoding do
|
|||||||
Encoding.find('external').should == Encoding::SHIFT_JIS
|
Encoding.find('external').should == Encoding::SHIFT_JIS
|
||||||
end
|
end
|
||||||
|
|
||||||
it "also sets the filesystem encoding" do
|
platform_is_not :windows do
|
||||||
Encoding.default_external = Encoding::SHIFT_JIS
|
it "also sets the filesystem encoding" do
|
||||||
Encoding.find('filesystem').should == Encoding::SHIFT_JIS
|
Encoding.default_external = Encoding::SHIFT_JIS
|
||||||
|
Encoding.find('filesystem').should == Encoding::SHIFT_JIS
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it "can accept a name of an encoding as a String" do
|
it "can accept a name of an encoding as a String" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user