Sha256: 453e58d8bca99596e14378127d142bc1174968ff52aa50ea0ca17c5a412904b8

Contents?: true

Size: 330 Bytes

Versions: 12

Compression:

Stored size: 330 Bytes

Contents

require File.expand_path('../../../spec_helper', __FILE__)

require 'hamster/core_ext/io'

describe IO do

  describe "#to_list" do

    it "returns an equivalent list" do
      File.open(File.dirname(__FILE__) + "/io_spec.txt") do |io|
        io.to_list.should == Hamster.list("A\n", "B\n", "C\n")
      end
    end

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hamster-0.3.6 spec/hamster/core_ext/io_spec.rb
hamster-0.3.5 spec/hamster/core_ext/io_spec.rb
hamster-0.3.4 spec/hamster/core_ext/io_spec.rb
hamster-0.3.3 spec/hamster/core_ext/io_spec.rb
hamster-0.3.2 spec/hamster/core_ext/io_spec.rb
hamster-0.3.1 spec/hamster/core_ext/io_spec.rb
hamster-0.3.0 spec/hamster/core_ext/io_spec.rb
hamster-0.2.13 spec/hamster/core_ext/io_spec.rb
hamster-0.2.12 spec/hamster/core_ext/io_spec.rb
hamster-0.2.11 spec/hamster/core_ext/io_spec.rb
hamster-0.2.9 spec/hamster/core_ext/io_spec.rb
hamster-0.2.8 spec/hamster/core_ext/io_spec.rb