spec/spec_helper.rb in vvm-rb-0.0.8 vs spec/spec_helper.rb in vvm-rb-0.0.9
- old
+ new
@@ -4,10 +4,11 @@
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
add_filter '/spec/'
+ add_filter '/vendor/'
end
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
@@ -16,18 +17,20 @@
require 'vvm-rb'
include VvmRb
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
+# [todo] - test is too slow
+
RSpec.configure do |config|
config.before :suite do
cache_dir = get_cache_dir
unless File.exists?(cache_dir)
ENV['VVMROOT'] = cache_dir
FileUtils.mkdir_p(cache_dir)
Installer.fetch
- %w{ v7-3-969 v7-4 }.each do |v|
+ %w{ v7-4-083 v7-4-103 }.each do |v|
i = Installer.new(v)
i.checkout
i.configure
i.make_install
end
@@ -46,7 +49,7 @@
FileUtils.rm_rf(@tmp)
end
end
def get_cache_dir
- File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '.vvm_cache'))
+ File.expand_path(File.join(File.dirname(__FILE__), '..', '.vvm_cache'))
end