Sha256: 854d0a33a1b33f993ea2c817a6265b1435df05c3b0c6e44bccb8579b0830ec2e

Contents?: true

Size: 719 Bytes

Versions: 19

Compression:

Stored size: 719 Bytes

Contents

require File.dirname(__FILE__) + "/../../spec_helper"
require File.dirname(__FILE__) + "/../utils/shared_paths_spec"

describe IMW::Dataset do

  describe 'setting default paths' do

    before do
      @dataset = IMW::Dataset.new(:testing, :root => IMWTest::TMP_DIR)
    end

    it "should set its root path to the value given" do
      @dataset.path_to(:root).should == IMWTest::TMP_DIR
    end

    it "should set paths for each workflow dir" do
      @dataset.workflow_dirs.each do |dir|
        @dataset.path_to(dir).should == File.join(IMWTest::TMP_DIR, dir.to_s)
      end
    end

    before do
      @path_manager = @dataset
    end
    it_should_behave_like "an object that manages paths"
    
  end
end




Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
imw-0.2.18 spec/imw/dataset/paths_spec.rb
imw-0.2.17 spec/imw/dataset/paths_spec.rb
imw-0.2.16 spec/imw/dataset/paths_spec.rb
imw-0.2.15 spec/imw/dataset/paths_spec.rb
imw-0.2.14 spec/imw/dataset/paths_spec.rb
imw-0.2.13 spec/imw/dataset/paths_spec.rb
imw-0.2.12 spec/imw/dataset/paths_spec.rb
imw-0.2.11 spec/imw/dataset/paths_spec.rb
imw-0.2.10 spec/imw/dataset/paths_spec.rb
imw-0.2.9 spec/imw/dataset/paths_spec.rb
imw-0.2.8 spec/imw/dataset/paths_spec.rb
imw-0.2.7 spec/imw/dataset/paths_spec.rb
imw-0.2.6 spec/imw/dataset/paths_spec.rb
imw-0.2.5 spec/imw/dataset/paths_spec.rb
imw-0.2.4 spec/imw/dataset/paths_spec.rb
imw-0.2.3 spec/imw/dataset/paths_spec.rb
imw-0.2.2 spec/imw/dataset/paths_spec.rb
imw-0.2.1 spec/imw/dataset/paths_spec.rb
imw-0.2.0 spec/imw/dataset/paths_spec.rb