Browse files

Fixed regex problem in passing.mspec that caused comments and blank l…

…ines

not o be ignored.
  • Loading branch information...
1 parent 6b58fa0 commit fccaeb6dc1c48090dbc14aa60129f9072e6750a2 Monty Williams committed Oct 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 passing.mspec
View
2 passing.mspec
@@ -10,7 +10,7 @@ class MSpecScript
# Read the conf file, removing trailing newlines and filter out comments
# and empty lines.
passing_specs = IO.readlines(conf_file).map { |line| "#{spec_dir}#{line.chomp}"}
- passing_specs.reject! { |line| line =~ /^\s*$|^\s*#/ }
+ passing_specs.reject! { |line| line =~ /#{spec_dir}\s*$|#{spec_dir}\s*#/ }
# An ordered list of the directories containing specs to run
set :files, passing_specs

0 comments on commit fccaeb6

Please sign in to comment.