Sha256: 216d57993b414cf2dfb2224e5f0d779fad40f3e03f283af262c30c05998a305b

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

require 'spec_helper'
module Alf
  describe Reader::Ruby do
    it_should_behave_like "a Reader class"

    let(:file){
      File.expand_path('../input.ruby', __FILE__)
    }
    let(:reader){
      Reader::Ruby.new(file)
    }

    let(:expected){
      [
        {:id => 1},
        {:id => 2}
      ]
    }

    it "should be enumerable" do
      reader.to_a.should eq(expected)
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-io/reader/test_ruby.rb
alf-core-0.14.0 spec/unit/alf-io/reader/test_ruby.rb