Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (15 sloc) 0.719 kB
# -*-ruby-*-
# A config file for running mspec that runs all, and only, the files listed
# in svn/tests/rubytst/passingspecs.conf. This is used by the rake tasks.
#
# Depends on default.mspec also being read
class MSpecScript
spec_dir = File.dirname(__FILE__) + '/spec/rubyspec/'
conf_file = File.dirname(__FILE__) + '/../svn/tests/rubytst/passingspecs.conf'
# 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 =~ /#{spec_dir}\s*$|#{spec_dir}\s*#/ }
# An ordered list of the directories containing specs to run
set :files, passing_specs
end
Jump to Line
Something went wrong with that request. Please try again.