Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (16 sloc) 381 Bytes
task :examples => :spec_test do
lib = File.expand_path('../../lib', __FILE__)
dir = File.expand_path('../../examples', __FILE__)
Dir["#{dir}/*.rb"].each do |file|
str = `ruby -I#{lib} #{file}`
if $?.exitstatus == 0
print '.'
else
print '*'
raise "Example #{file} failed."
end
end
puts
end
task :spec => :examples
task :test => :examples
Something went wrong with that request. Please try again.