Skip to content

Commit

Permalink
Check if a file is a test file the precise way using TTNT::TestTask
Browse files Browse the repository at this point in the history
  • Loading branch information
Genki-S committed Jul 4, 2015
1 parent bdafd56 commit fd6db90
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ttnt/test_selector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ def find_anchored_commit(sha)
#
# @param filename [String]
def test_file?(filename)
# Checking by file name convention.
# FIXME: Use Rake::TestTask to truly detect if it's a test file or not
filename =~ /^test\/.*\.rb/
@testtask.expanded_file_list.include?(filename)
end
end
end

0 comments on commit fd6db90

Please sign in to comment.