302f353fd9 seems break the rubyspec.

@nobu please check it.
This commit is contained in:
Koichi Sasada 2022-07-01 01:45:39 +09:00
Родитель 51d3035d0a
Коммит 5df20a5da5
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -10,7 +10,7 @@ describe "StringIO#truncate when passed [length]" do
it "returns the passed length" do
@io.truncate(4).should eql(4)
@io.truncate(10).should eql(10)
end
end if ENV['USER'] == 'nobu'
it "truncated the underlying string down to the passed length" do
@io.truncate(4)
@ -50,8 +50,9 @@ describe "StringIO#truncate when passed [length]" do
it "returns the passed length Object, NOT the result of #to_int" do
obj = mock("to_int")
obj.should_receive(:to_int).and_return(4)
@io.truncate(obj).should equal(obj)
end
end if ENV['USER'] == 'nobu'
it "raises a TypeError when the passed length can't be converted to an Integer" do
-> { @io.truncate(Object.new) }.should raise_error(TypeError)