Extract the filename from the rerun command

Example: "bin/rspec --seed 1234 ./spec/foo_spec.rb:46"
This commit is contained in:
John Fragoulis 2021-03-23 13:47:46 +02:00
parent de5c3626aa
commit 66f6f058b6
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ module RSpecQ
return if jobs.empty?
jobs.each do |job|
filename = job.sub(/\[.+\]/, "")
filename = job[/spec\/.+/].split(':')[0]
extra = {
build: @build_id,