minitest/minitest-rails

Running a single file breaks with "different prefix" error

Closed this issue · 0 comments

the code assumes that all source_location paths are absolute ... but they are not when running a local file with ruby test/foo_test.rb

	 1: from vendor/bundle/ruby/2.6.0/gems/minitest-rails-6.0.0/lib/minitest/rails/parallelize.rb:35:in `describe'
pathname.rb:522:in `relative_path_from': different prefix: "" and "/Users/mgrosser/Code/zendesk/samson" (ArgumentError)

source_path is test/models/user_test.rb
Rails.root is /Users/mgrosser/Code/zendesk/samson