Sha256: 22d984d1bf2fae3e0dc28bbb749249a128d6142c9b6a7073a298ec5de3a6ad02
Contents?: true
Size: 367 Bytes
Versions: 10
Compression:
Stored size: 367 Bytes
Contents
#!/usr/bin/env ruby Dir.chdir(File.dirname(__FILE__)) class String def same_file?(other) File.expand_path(self) == File.expand_path(other) end end candidates = Dir.glob('test_*.rb') to_exclude = [__FILE__, 'test_helper.rb'] test_files = candidates.reject {|f| to_exclude.any? {|ex| f.same_file?(ex) } } test_files.each do |tf| system "ruby #{tf}" end
Version data entries
10 entries across 10 versions & 1 rubygems