do not mess with gem paths for specs
This commit is contained in:
parent
23f0059c1f
commit
1cf0fae5f9
5
Rakefile
5
Rakefile
|
@ -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'
|
||||
|
|
|
@ -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+)*/
|
||||
|
|
Loading…
Reference in New Issue