Sha256: 0b66010647d2043dc4a0d77bec90e6a873e9bcb7b82f7810d0e01469c8b27f68
Contents?: true
Size: 685 Bytes
Versions: 6
Compression:
Stored size: 685 Bytes
Contents
require File.expand_path('spec/helper') require "Bacon_Colored" require 'Checked' class Box include Checked::DSL end BOX = Box.new FOLDER = ("/tmp/Checked_Test") %x! mkdir -p #{FOLDER}! at_exit { %x! rm -rf #{FOLDER} ! } def ruby_e cmd file = "#{FOLDER}/delete_me_perf_#{rand(100000)}.rb" begin loader = File.expand_path( File.dirname(__FILE__) + '/../lib' ) File.open(file, 'w') { |io| io.write %~ $LOAD_PATH.unshift('#{loader}') #{cmd} ~ } %x[ bundle exec ruby #{file} 2>&1].strip ensure File.delete file end end Dir.glob('spec/tests/*.rb').each { |file| require File.expand_path(file.sub('.rb', '')) if File.file?(file) }
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
Checked-1.2.3 | spec/main.rb |
Checked-1.2.2 | spec/main.rb |
Checked-1.2.1 | spec/main.rb |
Checked-1.2.0 | spec/main.rb |
Checked-1.1.0 | spec/main.rb |
Checked-1.0.0 | spec/main.rb |