Rscons is no longer a gem.
Run specs against the combined distributable standalone script.
This commit is contained in:
1 parent
bcd33fe098
commit
95ee63292e
10 files changed
+27
-49
No files matched your search
@@ -62,7 +62,7 @@ describe Rscons do
|
||||
[]
|
||||
end
|
||||
rscons_args = options[:rscons_args] || []
|
||||
command = %W[ruby -I. -r _simplecov_setup #{@owd}/bin/rscons] + rsconsfile_args + rscons_args
|
||||
command = %W[ruby -I. -r _simplecov_setup #{@owd}/test/rscons.rb] + rsconsfile_args + rscons_args
|
||||
@statics[:build_test_id] ||= 0
|
||||
@statics[:build_test_id] += 1
|
||||
command_prefix =
|
||||
@@ -74,6 +74,8 @@ describe Rscons do
|
||||
command_name = "#{command_prefix}#{@statics[:build_test_id]}"
|
||||
File.open("_simplecov_setup.rb", "w") do |fh|
|
||||
fh.puts <<EOF
|
||||
require "bundler"
|
||||
Bundler.setup
|
||||
require "simplecov"
|
||||
class MyFormatter
|
||||
def format(*args)
|
||||
@@ -88,7 +90,6 @@ SimpleCov.start do
|
||||
end
|
||||
formatter(MyFormatter)
|
||||
end
|
||||
$LOAD_PATH.unshift(#{@owd.inspect} + "/lib")
|
||||
# force color off
|
||||
ENV["TERM"] = nil
|
||||
#{options[:ruby_setup_code]}
|
||||
|
||||
+1
-1
@@ -12,4 +12,4 @@ SimpleCov.start do
|
||||
merge_timeout 3600
|
||||
end
|
||||
|
||||
require "rscons"
|
||||
require_relative "../test/rscons"
|
||||
Reference in new issue
Block a user