From 1244d780c127f00b8d5bffeb0a5f89800b8da960 Mon Sep 17 00:00:00 2001 From: Jared Ning Date: Sun, 16 Oct 2011 10:05:35 -0500 Subject: [PATCH] Fix global defaults file path. --- lib/jasmine/headless.rb | 2 ++ lib/jasmine/headless/options.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/jasmine/headless.rb b/lib/jasmine/headless.rb index cc0af68..eb2f5fb 100644 --- a/lib/jasmine/headless.rb +++ b/lib/jasmine/headless.rb @@ -1,3 +1,5 @@ +require 'pathname' + module Jasmine::Headless autoload :CoffeeScriptCache, 'jasmine/headless/coffee_script_cache' autoload :SpecFileAnalyzer, 'jasmine/headless/spec_file_analyzer' diff --git a/lib/jasmine/headless/options.rb b/lib/jasmine/headless/options.rb index 1787157..e3d6aca 100644 --- a/lib/jasmine/headless/options.rb +++ b/lib/jasmine/headless/options.rb @@ -21,7 +21,7 @@ module Jasmine } DEFAULTS_FILE = File.join(Dir.pwd, '.jasmine-headless-webkit') - GLOBAL_DEFAULTS_FILE = File.expand_path("~/#{DEFAULTS_FILE}") + GLOBAL_DEFAULTS_FILE = File.expand_path('~/.jasmine-headless-webkit') def self.from_command_line options = new -- 2.45.2