Sha256: 0ef7d7781e5551fdb2b742f0594b85551b28c0e7bfc2735f96940eed0d56c3c4
Contents?: true
Size: 900 Bytes
Versions: 4
Compression:
Stored size: 900 Bytes
Contents
require_relative '../spec_helper' describe Cranium::Configuration do let(:config) { Cranium::Configuration.new } describe "#upload_path" do it "should return the full upload path" do config.gpfdist_home_directory = "/gpfdist/home/dir" config.upload_directory = "uploads/customer" expect(config.upload_path).to eq "/gpfdist/home/dir/uploads/customer" end end describe "#storage_directory" do it "should return the previously set value" do config.storage_directory = "/some/path" expect(config.storage_directory).to eq "/some/path" end it "should return the default storage directory if one wasn't explicitly set" do config.gpfdist_home_directory = "/gpfdist/home/dir" config.upload_directory = "uploads/customer" expect(config.storage_directory).to eq "/gpfdist/home/dir/uploads/customer/.cranium" end end end
Version data entries
4 entries across 4 versions & 1 rubygems