HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/src/ruby-2.5.9/spec/ruby/core/string/shared/each_line_without_block.rb
describe :string_each_line_without_block, shared: true do
  describe "when no block is given" do
    it "returns an enumerator" do
      enum = "hello world".send(@method, ' ')
      enum.should be_an_instance_of(Enumerator)
      enum.to_a.should == ["hello ", "world"]
    end

    describe "returned Enumerator" do
      describe "size" do
        it "should return nil" do
          "hello world".send(@method, ' ').size.should == nil
        end
      end
    end
  end
end