lib/focused_test.rb in focused-test-0.5.0 vs lib/focused_test.rb in focused-test-0.6.0
- old
+ new
@@ -18,10 +18,10 @@
private
def strategy_for_file
if @file_path =~ /\.feature/
return proc { run_feature }
- elsif @file_path =~ /_spec\.rb/
+ elsif @file_path =~ /spec\.rb/
return proc { run_example }
end
content = IO.read(@file_path)
if content =~ /class .*Test < (.*TestCase|ActionController::IntegrationTest)/