If you go in Run > Edit Configurations...
And select All Specs in <Your Project> you‘ll see Filename Mask: **/*_spec.rb
This means when you tell RubyMine to run "All Specs", it only runs files which match the regex.
Now when you add second file and you do require_relative to load the other one, so both the tests run.
时间: 2024-11-03 03:34:15