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

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/simplecov-0.10.0/test/fixtures/deleted_source_sample.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/simplecov-0.10.0/test/fixtures/deleted_source_sample.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/simplecov-0.10.0/test/fixtures/deleted_source_sample.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/simplecov-0.10.0/test/fixtures/deleted_source_sample.rb
simplecov-0.10.0 test/fixtures/deleted_source_sample.rb