Sha256: 9ffda2db0b9651c1aec61ff2006bc2075300b9509ca72155ef51c4df6a730055

Contents?: true

Size: 282 Bytes

Versions: 10

Compression:

Stored size: 282 Bytes

Contents

#!/usr/bin/env ruby
require 'test/unit'
require 'ruby-prof'

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
ruby-prof-0.10.8 test/exceptions_test.rb
ruby-prof-0.10.7 test/exceptions_test.rb
ruby-prof-0.10.6 test/exceptions_test.rb
ruby-prof-0.10.5 test/exceptions_test.rb
ruby-prof-0.10.4 test/exceptions_test.rb
ruby-prof-0.10.2 test/exceptions_test.rb
acunote-ruby-prof-0.9.2 test/exceptions_test.rb
ruby-prof-0.9.2 test/exceptions_test.rb
ruby-prof-0.9.1 test/exceptions_test.rb
ruby-prof-0.9.0 test/exceptions_test.rb