Sha256: eddd7df87407c6aae2ca0ee57f1e08dc3c8e89715e41f14ad6f6bf98dc12c285

Contents?: true

Size: 643 Bytes

Versions: 5

Compression:

Stored size: 643 Bytes

Contents

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

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

  class Test
    include Aspect4r
    
    before :test, :before_test
    after  :test, :after_test
    around :test, :around_test
    
    def test_no_aspect
      before_test
      
      result = nil
      
      after_test result
    end
    
    def test; end
    
    def before_test; end
    
    def after_test result; end
    
    def around_test proxy
      a4r_invoke proxy
    end
  end
  
  def setup
    @obj = Test.new
  end

  def test_combined
    @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/combined_test.rb
aspect4r-0.8.2 test/combined_test.rb
aspect4r-0.8.1 test/combined_test.rb
aspect4r-0.8.0 test/combined_test.rb
aspect4r-0.7.1 test/combined_test.rb