Sha256: 0e350653454fe4c34f41d6ed17a122b19b77b5bcb8033ed0a75f808314347f94

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

require 'spec_helper'
module Alf
  describe Reader do
    
    subject{ Reader }
    it { should respond_to(:rash) }
      
    describe "rash" do
      subject{ Reader.rash($stdin) }
      it{ should be_a(Reader::Rash) }
    end
    
    describe "reader" do
      
      specify "when associated" do
        r = Reader.reader('suppliers.rash')
        r.should  be_a(Reader::Rash)
      end
      
      specify "when not associated" do
        lambda{ Reader.reader('.noone') }.should raise_error
      end
      
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alf-0.9.0 spec/reader_spec.rb