Sha256: 7fbeb6be9f845be008b8b34ca467c580819fb899dca072bbf05c1b77ed48eda5
Contents?: true
Size: 833 Bytes
Versions: 4
Compression:
Stored size: 833 Bytes
Contents
require 'spec/spec_helper' describe Heel::Configuration do it "finds files relative to root of gem" do Heel::Configuration.root_dir.should == File.expand_path(File.join(File.dirname(__FILE__), "..")) + "/" end it "finds files in the config dir of the project" do Heel::Configuration.config_path('config.rb').should == File.expand_path(File.join(File.dirname(__FILE__), "..", "config", "config.rb")) end it "finds files in the data dir of the project" do Heel::Configuration.data_path('famfamfam', 'icons').should == File.expand_path(File.join(File.dirname(__FILE__), "..", "data", "famfamfam", "icons")) end it "finds files in the lib dir of the project" do Heel::Configuration.lib_path('heel.rb').should == File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "heel.rb")) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
heel-2.0.0 | spec/configuration_spec.rb |
heel-1.0.3 | spec/configuration_spec.rb |
heel-1.0.2 | spec/configuration_spec.rb |
heel-1.0.0 | spec/configuration_spec.rb |