Sha256: 35014d8c44174cf43d3c183e71b14c6355cd93f266957b634607c3567b2acb40
Contents?: true
Size: 904 Bytes
Versions: 2
Compression:
Stored size: 904 Bytes
Contents
require 'spec_helper' module Alf describe Environment::Folder do let(:path){ File.expand_path('../examples', __FILE__) } let(:env){ Environment::Folder.new(path) } specify ".recognizes?" do Environment::Folder.recognizes?([path]).should be_true Environment::Folder.recognizes?(["not/an/existing/one"]).should be_false end 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.10.0 | spec/unit/environment/test_folder.rb |
alf-0.9.3 | spec/unit/environment/test_folder.rb |