Sha256: ad36e5b4e24e0ed9665845abf268fda272b4e95b746567b141afb2c8701fc92d
Contents?: true
Size: 381 Bytes
Versions: 25
Compression:
Stored size: 381 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "..")) require "lib/simplecov" SimpleCov.start { command_name "Test" } dir = File.expand_path(File.dirname(__FILE__)) file = File.join(dir, "generated_buddha.rb") code = %{ def kill_the_buddha(z) z**z end } File.open(file, "w") { |f| f.print code } load file File.unlink file fail unless kill_the_buddha(3) == 27
Version data entries
25 entries across 25 versions & 7 rubygems