Skip to content

Commit e5afd20

Browse files
author
Jan Xie
committed
add test suite option
1 parent bf197af commit e5afd20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ def run_fixture(path, limit: nil, except: nil, only: nil)
390390
end
391391

392392
def run_fixtures(path, except: nil, only: nil, options: {})
393+
only = /#{ARGV[0]}/ if ARGV[0]
393394
Dir[fixture_path("#{path}/**/*.json")].each do |file_path|
394395
next if except && file_path =~ except
395396
next if only && file_path !~ only

0 commit comments

Comments
 (0)