Sha256: e19edc810cc0ba43c6902c4385e6d527e441e7953346cd4cc4c2a63a22792f33

Contents?: true

Size: 287 Bytes

Versions: 23

Compression:

Stored size: 287 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

23 entries across 23 versions & 5 rubygems

Version Path
adamh-ruby-prof-0.7.3 test/exceptions_test.rb
skaes-ruby-prof-0.7.3 test/exceptions_test.rb
ruby-prof-danielhoey-0.8.1 test/exceptions_test.rb
ruby-prof-0.8.2 test/exceptions_test.rb
ruby-prof-0.8.1-x86-mingw32 test/exceptions_test.rb
ruby-prof-0.8.1-x86-mswin32 test/exceptions_test.rb
ruby-prof-0.8.1 test/exceptions_test.rb
ruby-prof-0.7.10 test/exceptions_test.rb
ruby-prof-0.7.9 test/exceptions_test.rb
ruby-prof-0.7.8 test/exceptions_test.rb
ruby-prof-0.7.7 test/exceptions_test.rb
ruby-prof-0.7.6 test/exceptions_test.rb
ruby-prof-0.7.5 test/exceptions_test.rb
ruby-prof-0.7.4 test/exceptions_test.rb
rdp-ruby-prof-0.7.4 test/exceptions_test.rb
ruby-prof-0.7.0-x86-mswin32-60 test/exceptions_test.rb
ruby-prof-0.7.3 test/exceptions_test.rb
ruby-prof-0.7.0 test/exceptions_test.rb
ruby-prof-0.7.1-x86-mswin32-60 test/exceptions_test.rb
ruby-prof-0.7.2 test/exceptions_test.rb