Skip to content

Commit 1b52e76

Browse files
committed
1 parent 76bcc13 commit 1b52e76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/mspec/tool/tag_from_output.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
if spec_file
3333
spec_file = spec_file[SPEC_FILE, 1] or raise
3434
else
35-
if error_line =~ /^(\w+)[#\.](\w+) /
36-
module_method = error_line.split(' ', 2).first
37-
file = "#{$1.downcase}/#{$2}_spec.rb"
35+
if error_line =~ /^([\w:]+)[#\.](\w+) /
36+
mod, method = $1, $2
37+
file = "#{mod.downcase.gsub('::', '/')}/#{method}_spec.rb"
3838
spec_file = ['spec/ruby/core', 'spec/ruby/library', *Dir.glob('spec/ruby/library/*')].find { |dir|
3939
path = "#{dir}/#{file}"
4040
break path if File.exist?(path)

0 commit comments

Comments
 (0)