Sha256: 8e1240825153d6a80a159b37728d2cef5859726b0097bde6d96290f6fc9d5256

Contents?: true

Size: 293 Bytes

Versions: 13

Compression:

Stored size: 293 Bytes

Contents

#!/usr/bin/env ruby
# encoding: UTF-8

require File.expand_path('../test_helper', __FILE__)

class ExceptionsTest < TestCase
  def test_profile
    result = begin
      RubyProf.profile do
        raise(RuntimeError, 'Test error')
      end
    rescue
    end
    refute_nil(result)
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
ruby-prof-0.17.0 test/exceptions_test.rb
airbnb-ruby-prof-0.0.1 test/exceptions_test.rb
ruby-prof-0.16.2 test/exceptions_test.rb
ruby-prof-0.16.1 test/exceptions_test.rb
ruby-prof-0.16.0 test/exceptions_test.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/ruby-prof-0.15.9/test/exceptions_test.rb
ruby-prof-0.15.9 test/exceptions_test.rb
ruby-prof-0.15.8 test/exceptions_test.rb
ruby-prof-0.15.7 test/exceptions_test.rb
ruby-prof-0.15.6 test/exceptions_test.rb
ruby-prof-0.15.5 test/exceptions_test.rb
ruby-prof-0.15.4 test/exceptions_test.rb
ruby-prof-0.15.3 test/exceptions_test.rb