Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ines

not o be ignored.
  • Loading branch information...
commit fccaeb6dc1c48090dbc14aa60129f9072e6750a2 1 parent 6b58fa0
Monty Williams authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.