We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76bcc13 commit 1b52e76Copy full SHA for 1b52e76
spec/mspec/tool/tag_from_output.rb
@@ -32,9 +32,9 @@
32
if spec_file
33
spec_file = spec_file[SPEC_FILE, 1] or raise
34
else
35
- if error_line =~ /^(\w+)[#\.](\w+) /
36
- module_method = error_line.split(' ', 2).first
37
- file = "#{$1.downcase}/#{$2}_spec.rb"
+ if error_line =~ /^([\w:]+)[#\.](\w+) /
+ mod, method = $1, $2
+ file = "#{mod.downcase.gsub('::', '/')}/#{method}_spec.rb"
38
spec_file = ['spec/ruby/core', 'spec/ruby/library', *Dir.glob('spec/ruby/library/*')].find { |dir|
39
path = "#{dir}/#{file}"
40
break path if File.exist?(path)
0 commit comments