Fix global defaults file path #72

Merged
ordinaryzelig merged 1 commits from master into master 2011-10-16 21:29:42 +00:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 1244d780c1 - Show all commits

View File

@ -1,3 +1,5 @@
require 'pathname'
module Jasmine::Headless module Jasmine::Headless
autoload :CoffeeScriptCache, 'jasmine/headless/coffee_script_cache' autoload :CoffeeScriptCache, 'jasmine/headless/coffee_script_cache'
autoload :SpecFileAnalyzer, 'jasmine/headless/spec_file_analyzer' autoload :SpecFileAnalyzer, 'jasmine/headless/spec_file_analyzer'

View File

@ -21,7 +21,7 @@ module Jasmine
} }
DEFAULTS_FILE = File.join(Dir.pwd, '.jasmine-headless-webkit') 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 def self.from_command_line
options = new options = new