Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 488d13452e
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.53 kB
unless ARGV.empty?
ARGV.each do |file|
require File.join('.',file)
end
else
Dir['spec/**/*_spec.rb'].entries.each do |entry|
require File.join('.', entry)
end
end
examples, failures, pending = Stendhal::ExampleGroup.run_all
report = "#{examples} #{examples != 1 ? 'examples' : 'example'}, #{failures} #{failures != 1 ? 'failures' : 'failure'}"
report += ", #{pending} pending" if pending > 0
Stendhal::Reporter.whitespace
color = failures == 0 ? :green : :red
Stendhal::Reporter.line report, :color => color
Jump to Line
Something went wrong with that request. Please try again.