do not mess with gem paths for specs

This commit is contained in:
Colin Surprenant 2012-06-28 18:03:50 -04:00
parent 23f0059c1f
commit 1cf0fae5f9
2 changed files with 9 additions and 5 deletions

View File

@ -1,10 +1,11 @@
require 'rubygems'
require 'rspec/core/rake_task'
load 'lib/tasks/red_storm.rake'
RSpec::Core::RakeTask.new(:spec) do
system("ruby -v")
module RedStorm; SPECS_CONTEXT = true; end
end
task :default => :spec
load 'lib/tasks/red_storm.rake'

View File

@ -12,9 +12,12 @@ module RedStorm
REDSTORM_HOME = File.expand_path(LAUNCH_PATH + '/../..')
TARGET_PATH = "#{BASE_PATH}/target"
end
GEM_PATH = "#{TARGET_PATH}/gems/"
ENV["GEM_PATH"] = GEM_PATH
ENV["GEM_HOME"] = GEM_PATH
unless defined?(SPECS_CONTEXT)
GEM_PATH = "#{TARGET_PATH}/gems/"
ENV["GEM_PATH"] = GEM_PATH
ENV["GEM_HOME"] = GEM_PATH
end
def current_ruby_mode
RUBY_VERSION =~ /(\d+\.\d+)(\.\d+)*/