Skip to content

Commit

Permalink
Keep opt test dependencies after all :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
webmat committed Dec 5, 2008
1 parent 257f9ad commit e79b6e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/test_helper.rb
Expand Up @@ -12,6 +12,15 @@
gem 'mocha', '~> 0.5'
require 'mocha'

# Just load redgreen if not running tests from TextMate
IN_TM = !ENV['TM_DIRECTORY'].nil? unless defined?(IN_TM)
begin
require 'redgreen' unless IN_TM
require 'ruby-debug'
rescue LoadError => ex
puts "Couldn't load optional test dependencies: #{ex.inspect}"
end

require File.join( [TEST_DIR] + %w{ .. lib git_remote_branch} )

require "#{TEST_DIR}/helpers/in_dir"
Expand Down

0 comments on commit e79b6e4

Please sign in to comment.