Sha256: 706adf8c93f1528ef135ad19743be519224c5d0dc36a88391bb0b05b792ec059

Contents?: true

Size: 343 Bytes

Versions: 15

Compression:

Stored size: 343 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

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

15 entries across 15 versions & 1 rubygems

Version Path
hamster-0.2.5 spec/hamster/core_ext/io_spec.rb
hamster-0.2.4 spec/hamster/core_ext/io_spec.rb
hamster-0.2.3 spec/hamster/core_ext/io_spec.rb
hamster-0.2.2 spec/hamster/core_ext/io_spec.rb
hamster-0.2.1 spec/hamster/core_ext/io_spec.rb
hamster-0.2.0 spec/hamster/core_ext/io_spec.rb
hamster-0.1.23 spec/hamster/core_ext/io_spec.rb
hamster-0.1.22 spec/hamster/core_ext/io_spec.rb
hamster-0.1.21 spec/hamster/core_ext/io_spec.rb
hamster-0.1.20 spec/hamster/core_ext/io_spec.rb
hamster-0.1.19 spec/hamster/core_ext/io_spec.rb
hamster-0.1.18 spec/hamster/core_ext/io_spec.rb
hamster-0.1.17 spec/hamster/core_ext/io_spec.rb
hamster-0.1.16 spec/hamster/core_ext/io_spec.rb
hamster-0.1.15 spec/hamster/core_ext/io_spec.rb