Sha256: 5bb2896a2c0c5e12ec81a176d34a4e13b23f9d7b054cef6b271c014f8b95b278

Contents?: true

Size: 729 Bytes

Versions: 1

Compression:

Stored size: 729 Bytes

Contents

require 'jldrill/model/Config'

module JLDrill

	describe Config do
	
	    it "should have a DATA_DIR" do
	        Config::DATA_DIR.should_not be_nil
	    end

        it "should not be using the Gem DATA_DIR in the tests" do
            Config::DATA_DIR.should eql(File.expand_path("data/jldrill"))
        end

        it "should use the Gem::datadir if set" do
            def Gem.datadir(string)
                "blah"
            end
	        Config::getDataDir.should eql(File.expand_path("blah"))
            # Reset this so the other tests don't fail
            def Gem.datadir(string)
                nil
            end
            Config::DATA_DIR.should eql(File.expand_path("data/jldrill"))
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jldrill-0.5.1.7 spec/jldrill/model/Config_spec.rb