Sha256: d5cc64ff8d62abbc5ac0bc8e6d8113650874615be777b6ecb73f8c75e9161a3d

Contents?: true

Size: 719 Bytes

Versions: 2

Compression:

Stored size: 719 Bytes

Contents

require 'spec_helper'
module Alf
  describe Environment::Folder do
    
    let(:path){ File.expand_path('../examples', __FILE__) }
    let(:env){ Environment::Folder.new(path) }
      
    describe "dataset" do
      
      subject{ env.dataset(name) }
      
      describe "when called on explicit file" do
        let(:name){ "suppliers.rash" }
        it{ should be_a(Reader::Rash) }
      end
      
      describe "when called on existing" do
        let(:name){ "suppliers" }
        it{ should be_a(Reader::Rash) }
      end
      
      describe "when called on unexisting" do
        let(:name){ "notavalidone" }
        specify{ lambda{ subject }.should raise_error }
      end
      
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alf-0.9.2 spec/unit/environment/test_folder.rb
alf-0.9.1 spec/unit/environment/test_folder.rb