Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
Fixed regex problem in passing.mspec that caused comments and blank l…
Browse files Browse the repository at this point in the history
…ines

not o be ignored.
  • Loading branch information
Monty Williams committed Oct 22, 2009
1 parent 6b58fa0 commit fccaeb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passing.mspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fccaeb6

Please sign in to comment.