Sha256: ae9bbbf084b8360bc950ea7887535721b116ca05abc64d3e2bbc39bea684019f
Contents?: true
Size: 680 Bytes
Versions: 4
Compression:
Stored size: 680 Bytes
Contents
require 'data_paths/data_paths' require 'spec_helper' require 'helpers/data' shared_examples_for "Methods" do before(:all) do Helpers::DATA_DIRS.each do |dir| subject.register_data_path dir end end it "should list data directories" do Helpers::DATA_DIRS.each do |dir| subject.data_paths.should include(dir) end end it "should prevent the addition of non-existant directories" do lambda { subject.register_data_path 'lol' }.should raise_error(RuntimeError) end it "should prevent the addition of non-directories" do lambda { subject.register_data_path __FILE__ }.should raise_error(RuntimeError) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
data_paths-0.3.1 | spec/methods_examples.rb |
data_paths-0.3.0 | spec/methods_examples.rb |
data_paths-0.3.0.rc2 | spec/methods_examples.rb |
data_paths-0.3.0.rc1 | spec/methods_examples.rb |