Sha256: 2507203084c7899128ad39a801070888f1edc0ccf6905f47d361d82c3481d52f

Contents?: true

Size: 434 Bytes

Versions: 5

Compression:

Stored size: 434 Bytes

Contents

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

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

  class Test
    include Aspect4r
    
    around :test, :around_test
    
    def test_no_aspect; end
    
    def test; end
    
    def around_test proxy
      a4r_invoke proxy
    end
  end
  
  def setup
    @obj = Test.new
  end

  def test_around
    @obj.test_no_aspect
    @obj.test
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aspect4r-0.9.0 test/around_test.rb
aspect4r-0.8.2 test/around_test.rb
aspect4r-0.8.1 test/around_test.rb
aspect4r-0.8.0 test/around_test.rb
aspect4r-0.7.1 test/around_test.rb