Sha256: ff4453d5b07a229b1d0cc77740603c3588532406ac6aa5e4b98d206d6ef7b68f

Contents?: true

Size: 406 Bytes

Versions: 12

Compression:

Stored size: 406 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/test_helper')

class AroundTest < Test::Unit::TestCase
  include RubyProf::Test

  class Klass

    aspector do
      around :test, :around_test
    end

    def test_no_aspect; end

    def test; end

    def around_test proxy, &block
      proxy.call &block
    end
  end

  def test_around
    o = Klass.new
    o.test_no_aspect
    o.test
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
aspector-0.13.1 performance-tests/around_test.rb
aspector-0.13.0 performance-tests/around_test.rb
aspector-0.12.3 performance-tests/around_test.rb
aspector-0.12.2 performance-tests/around_test.rb
aspector-0.12.1 performance-tests/around_test.rb
aspector-0.12.0 performance-tests/around_test.rb
aspector-0.11.1 performance-tests/around_test.rb
aspector-0.11.0 performance-tests/around_test.rb
aspector-0.10.1 performance-tests/around_test.rb
aspector-0.10.0 performance-tests/around_test.rb
aspector-0.9.1 performance-tests/around_test.rb
aspector-0.9.0 performance-tests/around_test.rb