mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use String arguments for #search_convpath
* Otherwise it seems to SEGV on Windows, see
f00bf24272 (commitcomment-30650955)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d3a9ebeb1c
commit
38989c7621
1 changed files with 3 additions and 9 deletions
|
@ -26,15 +26,9 @@ with_feature :encoding do
|
|||
end
|
||||
|
||||
it "raises an Encoding::ConverterNotFoundError if no conversion path exists" do
|
||||
# lambda do
|
||||
# Encoding::Converter.search_convpath(
|
||||
# Encoding::ASCII_8BIT, Encoding::Emacs_Mule)
|
||||
# end.should raise_error(Encoding::ConverterNotFoundError)
|
||||
begin
|
||||
Encoding::Converter.search_convpath(Encoding::ASCII_8BIT, Encoding::Emacs_Mule)
|
||||
rescue => e
|
||||
e.class.should == Encoding::ConverterNotFoundError
|
||||
end
|
||||
lambda do
|
||||
Encoding::Converter.search_convpath(Encoding::ASCII_8BIT.name, Encoding::Emacs_Mule.name)
|
||||
end.should raise_error(Encoding::ConverterNotFoundError)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue