Sha256: 729e4cdbac0cc7d6a735bda45579456ae88db9c4c837f529b5f16c06958e0833

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

#!/usr/bin/env ruby

require 'test/unit'
require 'ruby-prof'
require 'test_helper'

class ExceptionsTest < Test::Unit::TestCase
  def test_profile
    puts "test_profile"
    result = begin
      RubyProf.profile do 
        raise(RuntimeError, 'Test error')
      end
    rescue => e
    end    
    assert_not_nil(result)
    puts result
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jeremy-ruby-prof-0.6.1 test/exceptions_test.rb