Sha256: ed4f1c1bbe28cc59597f88fe9ab4afd32bbb8a00df8a2ccd6dde6a6c5eacb2b0
Contents?: true
Size: 681 Bytes
Versions: 1
Compression:
Stored size: 681 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| @context.register_data_dir dir end end it "should list data directories" do Helpers::DATA_DIRS.each do |dir| @context.data_paths.should include(dir) end end it "should prevent the addition of non-existant directories" do lambda { @context.register_data_dir 'lol' }.should raise_error(RuntimeError) end it "should prevent the addition of non-directories" do lambda { @context.register_data_dir __FILE__ }.should raise_error(RuntimeError) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
data_paths-0.2.1 | spec/methods_examples.rb |