spec/shelr_spec.rb in shelr-0.11.2 vs spec/shelr_spec.rb in shelr-0.11.3

- old
+ new

@@ -1,15 +1,15 @@ require 'spec_helper' describe Shelr do it "should have ::APP_NAME defined" do - Shelr::APP_NAME.should == 'shelr' + Shelr::APP_NAME.should_not be_nil end it "should provide XDG and APP_NAME based ::DATA_DIR" do - Shelr::DATA_DIR.should == File.join(XDG['DATA_HOME'].to_s, Shelr::APP_NAME) + Shelr::DATA_DIR.should == File.join(ENV['XDG_DATA_HOME'], Shelr::APP_NAME) end it "should provide XDG config path" do - Shelr::CONFIG_DIR.should == File.join(XDG['CONFIG_HOME'].to_s, Shelr::APP_NAME) + Shelr::CONFIG_DIR.should == File.join(ENV['XDG_CONFIG_HOME'], Shelr::APP_NAME) end end