From 420e620d28baf40a10506a4230cb4c4d4e3db9cb Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Wed, 27 Feb 2013 21:29:11 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20overwrite=20TM=5FSUPPORT=5FPATH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The hardcoded path won’t work for 2.0 or for users who didn’t install TextMate in /Applications (or possibly renamed it), so only use it as a fallback. --- support/spec/spec_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/spec/spec_helper.rb b/support/spec/spec_helper.rb index a0064e2..c265b93 100644 --- a/support/spec/spec_helper.rb +++ b/support/spec/spec_helper.rb @@ -1,7 +1,7 @@ require 'rubygems' require 'rspec/core' -ENV['TM_SUPPORT_PATH'] = '/Applications/TextMate.app/Contents/SharedSupport/Support' +ENV['TM_SUPPORT_PATH'] = '/Applications/TextMate.app/Contents/SharedSupport/Support' unless ENV.has_key?('TM_SUPPORT_PATH') RSpec.configure do |c| c.include(Module.new do @@ -9,4 +9,4 @@ def project_root @project_root ||= File.expand_path(File.join(File.dirname(__FILE__), '../fixtures')) end end) -end \ No newline at end of file +end