Kouhei Sutou
null+****@clear*****
Mon Nov 25 23:30:46 JST 2013
Kouhei Sutou 2013-11-25 23:30:46 +0900 (Mon, 25 Nov 2013) New Revision: 791915be393e9ad37dce9c382b84b0ebb159846b https://github.com/droonga/drntest/commit/791915be393e9ad37dce9c382b84b0ebb159846b Message: Use "#===" instead of "==" and "=~" "regexp === string" equals to "regexp =~ string" and "string === string" equals to "string == string". Modified files: lib/drntest/tester.rb Modified: lib/drntest/tester.rb (+3 -5) =================================================================== --- lib/drntest/tester.rb 2013-11-25 23:28:58 +0900 (0cbd47c) +++ lib/drntest/tester.rb 2013-11-25 23:30:46 +0900 (e313989) @@ -130,14 +130,12 @@ module Drntest unles****@patte*****? if @pattern =~ /\A\/.+\/\z/ matcher = Regexp.new(@pattern[1..-2]) - tests.select! do |test| - test.basename(".test").to_s =~ matcher - end else + matcher = @pattern + end tests.select! do |test| - test.basename(".test").to_s == @pattern + matcher === test.basename(".test").to_s end - end end tests -------------- next part -------------- HTML����������������������������... Download