Skip to content

Commit 76d322b

Browse files
committed
Disable to run for bundled gems in test-spec
1 parent 92eab38 commit 76d322b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spec/default.mspec

+10
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ class MSpecScript
3131
]
3232
end
3333

34+
# Disable to run for bundled gems in test-spec
35+
bundled_gems = File.readlines("gems/bundled_gems").map do |line|
36+
next if /^\s*(?:#|$)/ =~ line
37+
"library/" + line.split.first
38+
end.compact
39+
stdlibs = Dir.glob("ruby/library/*").map{|d| d.sub(%r'\Aruby/', '')}
40+
41+
set :library, stdlibs - bundled_gems
42+
set :files, get(:command_line) + get(:language) + get(:core) + get(:library) + get(:security) + get(:optional)
43+
3444
if ENV.key?("COVERAGE")
3545
set :excludes, ["Coverage"]
3646
end

0 commit comments

Comments
 (0)